Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-80313

Bump 4.4dev composer to use PHP 8.1 as minimum

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.4
    • 4.4
    • Installation
    • MOODLE_404_STABLE
    • MOODLE_404_STABLE
    • Hide
      1. Using any PHP version < PHP 8.1 (7.4, 8.0,...).
        1. Run php admin/tool/phpunit/cli/init.php
        2. Verify that the composer installation fails.
        3. Verify that the Problem 1 (there are many) is: "Root composer.json requires php >=8.1.0 but your php version (X.Y.X) does not satisfy that requirement."
      2. Using any PHP version >= PHP 8.1 (8.1, 8.2, ...).
        1. Run php admin/tool/phpunit/cli/init.php
        2. Verify that the composer installation ends without error and then the Moodle installation happens normally, ending with the message: "PHPUnit test environment setup complete."
      3. Verify that all the GHA, CiBoT and ToBiC reports in the issue are passing ok.
      Show
      Using any PHP version < PHP 8.1 (7.4, 8.0,...). Run php admin/tool/phpunit/cli/init.php Verify that the composer installation fails. Verify that the Problem 1 (there are many) is: "Root composer.json requires php >=8.1.0 but your php version (X.Y.X) does not satisfy that requirement." Using any PHP version >= PHP 8.1 (8.1, 8.2, ...). Run php admin/tool/phpunit/cli/init.php Verify that the composer installation ends without error and then the Moodle installation happens normally, ending with the message: "PHPUnit test environment setup complete." Verify that all the GHA, CiBoT and ToBiC reports in the issue are passing ok.

      Was installing some 4.4dev Moodle PHPUnit sites when, by mistake, I tried to install Moodle 4.4dev with PHP 7.4. My surprise came when composer told me that the required version was 8.0 and not 8.1.

      Looking to MDL-78496 it seems that we completely missed the TODO-4:

      TODO-4: Composer: To be done as part of this issue (main only):

      1. Raised lower PHP version does imply that core composer stuff need to be updated and regenerated with it.
      2. Also, check that all the php and extensions requirements and recommendations in the composer.json file match the ones specified in the admin/environment.xml file (defined by this issue).

      This issue will fix that remaining TODO (main, aka 4.4dev only).

            stronk7 Eloy Lafuente (stronk7)
            stronk7 Eloy Lafuente (stronk7)
            Andrew Lyons Andrew Lyons
            Jun Pataleta Jun Pataleta
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 7 hours, 10 minutes
                7h 10m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.