Kuba Werłos 1 месяц назад
Родитель
Сommit
ff070ae627
4 измененных файлов с 14 добавлено и 8 удалено
  1. 3 3
      .github/workflows/sca.yml
  2. 2 2
      dev-tools/composer.json
  3. 3 3
      dev-tools/composer.lock
  4. 6 0
      dev-tools/phpstan/baseline.php

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

@@ -17,7 +17,7 @@ jobs:
 
     runs-on: 'ubuntu-24.04'
     env:
-      php-version: '8.3'
+      php-version: '8.4'
 
     steps:
       - name: Checkout code
@@ -60,7 +60,7 @@ jobs:
         run: vendor/bin/phpunit --version
 
       - name: Run AutoReview
-        run: vendor/bin/paraunit run --testsuite auto-review
+        run: vendor/bin/phpunit --testsuite auto-review
 
       - name: Check - file permissions
         run: ./dev-tools/check_file_permissions.sh
@@ -115,7 +115,7 @@ jobs:
         run: |
           echo "Array types must explicitly declare key-type, i.e. as \`array<type-of-key, type-of-value>\`, \`list<type-of-value>\` or \`array{...}\` - instead of \`array<type-of-value>\` or \`type-of-value[]\`."
           echo "Hint: don't apply those rules blindly, provide array key type explicitly\!"
-          ./php-cs-fixer check --config=dev-tools/.php-cs-fixer.well-defined-arrays.php --path-mode=intersection $CHANGED_PHP_FILES
+          PHP_CS_FIXER_IGNORE_ENV=1 ./php-cs-fixer check --config=dev-tools/.php-cs-fixer.well-defined-arrays.php --path-mode=intersection $CHANGED_PHP_FILES
 
       - name: Check - Mess Detector (phpmd)
         if: ${{ env.CHANGED_PHP_FILES }}

+ 2 - 2
dev-tools/composer.json

@@ -1,7 +1,7 @@
 {
     "type": "project",
     "require": {
-        "php": "^8.3",
+        "php": "^8.4",
         "ergebnis/composer-normalize": "^2.45.0",
         "icanhazstring/composer-unused": "^0.8.11",
         "kubawerlos/composer-smaller-lock": "^1.0.1",
@@ -26,7 +26,7 @@
         },
         "optimize-autoloader": true,
         "platform": {
-            "php": "8.3"
+            "php": "8.4"
         },
         "prefer-stable": true,
         "sort-packages": true

+ 3 - 3
dev-tools/composer.lock

@@ -4,7 +4,7 @@
         "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
         "This file is @generated automatically"
     ],
-    "content-hash": "c35e22b2b997035b1ab5f721a7730515",
+    "content-hash": "6e82bb4965caa1abb6f9dd843af42fa5",
     "packages": [
         {
             "name": "composer-unused/contracts",
@@ -2055,11 +2055,11 @@
     "prefer-stable": false,
     "prefer-lowest": false,
     "platform": {
-        "php": "^8.3"
+        "php": "^8.4"
     },
     "platform-dev": [],
     "platform-overrides": {
-        "php": "8.3"
+        "php": "8.4"
     },
     "plugin-api-version": "2.6.0"
 }

+ 6 - 0
dev-tools/phpstan/baseline.php

@@ -2365,6 +2365,12 @@ $ignoreErrors[] = [
 	'count' => 1,
 	'path' => __DIR__ . '/../../tests/AutoReview/FixerFactoryTest.php',
 ];
+$ignoreErrors[] = [
+	'message' => '#^Call to method ReflectionClass\\<object\\>\\:\\:isSubclassOf\\(\\) with \'PhpCsFixer\\\\\\\\Fixer\\\\\\\\AbstractPhpUnitFixer\' will always evaluate to false\\.$#',
+	'identifier' => 'method.impossibleType',
+	'count' => 1,
+	'path' => __DIR__ . '/../../tests/AutoReview/ProjectCodeTest.php',
+];
 $ignoreErrors[] = [
 	'message' => '#^Cannot access property \\$file on SimpleXMLElement\\|false\\.$#',
 	'identifier' => 'property.nonObject',