Browse Source

minor #5775 DX: run static code analysis on PHP 8.0 (kubawerlos)

This PR was merged into the master branch.

Discussion
----------

DX: run static code analysis on PHP 8.0

Waits for new release of [php-scoper](https://github.com/humbug/php-scoper).

Commits
-------

d1b593e9b Run static code analysis on PHP 8.0
SpacePossum 3 years ago
parent
commit
93a54b324e
2 changed files with 4 additions and 3 deletions
  1. 1 1
      .github/workflows/sca.yml
  2. 3 2
      dev-tools/composer.json

+ 1 - 1
.github/workflows/sca.yml

@@ -12,7 +12,7 @@ jobs:
         operating-system:
           - ubuntu-20.04
         php-version:
-          - 7.4
+          - 8.0
 
     name: Static Code Analysis
 

+ 3 - 2
dev-tools/composer.json

@@ -1,12 +1,13 @@
 {
     "require": {
-        "php": "^7.4"
+        "php": "^7.4 || ^8.0"
     },
     "require-dev": {
         "ergebnis/composer-normalize": "^2.15.0",
         "humbug/box": "^3.8",
+        "humbug/php-scoper": "dev-master#0a4e329 as 0.14.2",
         "jangregor/phpstan-prophecy": "^0.8.1",
-        "maglnet/composer-require-checker": "2.0.0",
+        "maglnet/composer-require-checker": "3.3.0",
         "mi-schi/phpmd-extension": "^4.3",
         "phpmd/phpmd": "^2.10.2",
         "phpstan/phpstan": "0.12.96",