-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
4.1.1, 4.2
-
None
-
MOODLE_401_STABLE, MOODLE_402_STABLE
This was detected as part of MDL-73587 (PHPCompatibility complete run against codebase).
- 'numeric' is a soft reserved keyword as of PHP version 7.0 and should not be used to name a class, interface or trait or as part of a namespace (namespace declaration)
- 'enum' is a soft reserved keyword as of PHP version 8.1 and should not be used to name a class, interface or trait or as part of a namespace (namespace declaration)
Note this is not critical and doesn't lead to any problem or PHP notice/warning/deprecation... just they are reserved and we should try to stop using them.
Cases:
- lib/php-enum/src/Enum.php : 7 & 22
- mod/lesson/classes/local/numeric/helper.php : 26
Ciao
- Discovered while testing
-
MDL-73587 Perform a complete PHPCompatibility 8.1 execution against codebase
-
- Closed
-
- has been marked as being related by
-
MDL-80117 Prepare Moodle for PHP 8.4
-
- Open
-
-
MDL-73016 Prepare Moodle for PHP 8.1
-
- Closed
-
-
MDL-76405 Prepare Moodle for PHP 8.2
-
- Closed
-
-
MDL-76426 Prepare Moodle for PHP 8.3
-
- Closed
-
- is duplicated by
-
MDL-74124 Consider renaming the mod_lesson\local\numeric namespace
-
- Closed
-
- will be (partly) resolved by
-
MDL-82825 Remove php-enum library
-
- Waiting for integration review
-