-
Improvement
-
Resolution: Fixed
-
Minor
-
4.0
-
MOODLE_400_STABLE
-
MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_39_STABLE
-
MDL-73269/master -
There are a few changes that could be done in composer.json file to improve following:
- let PhpStorm and other tools know what PHP version Moodle supports - at the moment you need to configure them manually
- let PhpStorm and other tools know what PHP extensions are required - at the moment PhpStorm shows warnings (for example any json_encode call)
- admins/developers cannot find Moodle requirements easily, they have to read environment XML file
- Moodle developer running "composer update" to create composer.local needs to be using lowest support PHP version
Solution is to:
- add PHP version requirement to composer.json
- add optional and required PHP extensions to composer.json
- add platform setting to composer to get composer.lock file for all PHP binaries
Benefits:
- PhpStorm can show unavailable PHP syntax based on PHP versions required by Moodle
- PhpStorm does not show warnings about missing PHP extensions
- Developers are notified about missing PHP extensions and unsupported PHP versions when they init behat or phpunit
- Moodle developers can use any PHP version when building composer.lock
- blocks
-
MDL-73272 Move behat extension to core
- Closed
- has a non-specific relationship to
-
MDL-73473 Multiple warnings in CI running tests (Warning: is_file(): Unable to find the wrapper "phpvfs1")
- Closed
- has been marked as being related by
-
MDL-71747 Decide Moodle 4.1 requirements and push them to environment.xml (due date: 2022-06-01)
- Closed
- Testing discovered
-
MDLSITE-6591 Create a new job @ integration.moodle.org to validate composer
- Open