-
Task
-
Resolution: Fixed
-
Major
-
3.11.5, 4.0
-
MOODLE_311_STABLE, MOODLE_400_STABLE
-
MOODLE_311_STABLE
-
This task is one of the final ones to perform when everything else in the epic has been already applied.
It's about to run the PHPCompatibility standard (that we usually also run as part of our local_codechecker) against the whole codebase.
Prerequisites:
The epic must be almost finished (to avoid detecting problems that correspond to other issues).
PHPCompatibility must support the php versions being checked.
Determine the range of PHP versions supported for the branch (7.3-8.0)
To perform the run against master, just:
- Clone https://github.com/PHPCompatibility/PHPCompatibility locally.
- Ensure you're in the "develop" branch (the "master" branch contains the latest release, quite old now 2019).
- run composer install
- Run:
export DIRROOT=/path/to/your/moodle ; vendor/bin/phpcs \
--standard=PHPCompatibility \
--runtime-set testVersion 7.3-8.0 \
--extensions=php \
--ignore=$DIRROOT/vendor/,$DIRROOT/local/ \
--cache=/tmp/cache -p $DIRROOT
- Look for detected stuff, discard false positives (it can be useful to look to the results of previous PHP XY Epic - ) to copy any decision there.
- has a clone
-
MDL-73587 Perform a complete PHPCompatibility 8.1 execution against codebase
-
- Closed
-
- has a non-specific relationship to
-
MDL-77102 mbstring.func_overload is deprecated since PHP 7.2
-
- Closed
-
-
MDL-70309 Upgrade MongoDB PHP Library to 1.8.0
-
- Closed
-
- Testing discovered
-
MDL-74124 Consider renaming the mod_lesson\local\numeric namespace
-
- Closed
-