diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index a3e9db70f1ba42..8517004e89b5e5 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -89,10 +89,6 @@ jobs: ini-file: development coverage: none - # Ensure that Composer installs the correct versions of packages. - - name: Override PHP version in composer.json - run: composer config platform.php ${{ matrix.php }} - # The spatie/phpunit-watcher package is not compatible with PHP < 7.2. # It must be removed before running the tests. - name: Remove incompatible Composer packages diff --git a/composer.json b/composer.json index 3571377bd58bd7..f6e28be2e8fcf7 100644 --- a/composer.json +++ b/composer.json @@ -17,9 +17,6 @@ }, "config": { "process-timeout": 0, - "platform": { - "php": "7.4" - }, "allow-plugins": { "dealerdirect/phpcodesniffer-composer-installer": true, "composer/installers": true @@ -43,6 +40,7 @@ } ], "require": { + "php": ">=7.0.0", "composer/installers": "~1.0" }, "scripts": {