-
Task
-
Resolution: Done
-
Minor
-
4.1
-
None
-
MOODLE_401_STABLE
-
MOODLE_401_STABLE, MOODLE_402_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.4-8.1). See
MDL-71747for 4.1 reqs.
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 the previous PHP 8.0 Epic -
MDL-73586) to copy any decision here.
Please, when processing the file, always try to drag (copy-paste) the notes from previous runs. I know that it's a little bit more of work, but it's way better than not having references from previous runs and having to re-check the same again. It's only ~70 files/notes. Please!
- has a clone
-
MDL-77104 Perform a complete PHPCompatibility 8.2 execution against codebase
-
- Closed
-
- has a non-specific relationship to
-
MDL-74853 Audit uses of htmlspecialchars and friends which now use a different default quote encoding
-
- Closed
-
-
MDL-71747 Decide Moodle 4.1 requirements and push them to environment.xml (due date: 2022-06-01)
-
- Closed
-
-
MDL-76089 Upgrade Horde to latest version
-
- Closed
-
-
MDL-76691 Upgrade h5p-editor-php-library and h5p-php-library to moodle-1.23
-
- Closed
-
- has been marked as being related by
-
MDL-74905 Decide Moodle 4.2 requirements and push them to environment.xml (due date: 2022-12-26)
-
- Closed
-
-
MDL-76724 Decide Moodle 4.3 requirements and push them to environment.xml (due date: 2023-05-08)
-
- Closed
-
- is a clone of
-
MDL-73586 Perform a complete PHPCompatibility 8.0 execution against codebase
-
- Closed
-
- Testing discovered
-
MDL-77101 Using soft reserved words (numeric, enum) could break in the future
-
- Open
-
-
MDL-77095 "Only Serializable" classes are deprecated since PHP 8.1.
-
- Closed
-
-
MDL-77097 MongoDB uses get_debug_type that is not available for PHP 7.4
-
- Closed
-
-
MDL-77099 The use of "mixed" return type is not available in PHP 7.4
-
- Closed
-
-
MDL-77100 Remove uses of str_ends_with() from core
-
- Closed
-
-
MDL-77102 mbstring.func_overload is deprecated since PHP 7.2
-
- Closed
-
-
MDL-77103 Function strftime() is deprecated since PHP 8.1
-
- Closed
-
- links to