Developer Area/PHP8/Upgrade to PHP8: Difference between revisions
From Mahara Wiki
< Developer Area | PHP8
(Created page with "As things are discovered, please add them to this table. We can use this as a starting point. {| class="wikitable" |- ! Issue !! description !! occurrences<sup>*</sup> |- | <...") |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
! Issue !! | ! Issue !! Description !! Occurrences<sup>*</sup> !! Potential solutions | ||
|- | |- | ||
| <code>->getClass()</code> || [https://www.php.net/manual/en/migration80.deprecated.php Class reflection deprecated] || 101 | | <code>->getClass()</code> || [https://www.php.net/manual/en/migration80.deprecated.php Class reflection deprecated] || 101 || https://www.amitmerchant.com/the-get-class-alternative-in-php8/#:~:text=Using%20%3A%3Aclass%20on%20objects,of%20get_class()%20like%20so. | ||
|- | |||
| Passing null as an object is no longer allowed | |||
|} | |} | ||
<sup>*</sup>Roughly | <sup>*</sup>Roughly |
Latest revision as of 13:00, 18 Ocak 2022
As things are discovered, please add them to this table. We can use this as a starting point.
Issue | Description | Occurrences* | Potential solutions |
---|---|---|---|
->getClass() |
Class reflection deprecated | 101 | https://www.amitmerchant.com/the-get-class-alternative-in-php8/#:~:text=Using%20%3A%3Aclass%20on%20objects,of%20get_class()%20like%20so. |
Passing null as an object is no longer allowed |
*Roughly