Browse Source

CI: Composer - move prefer-stable to file config (#7406)

Dariusz Rumiński 1 year ago
parent
commit
506e19be56
4 changed files with 20 additions and 18 deletions
  1. 3 3
      .github/workflows/ci.yml
  2. 1 0
      composer.json
  3. 3 2
      dev-tools/composer.json
  4. 13 13
      dev-tools/composer.lock

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

@@ -20,7 +20,7 @@ jobs:
           - operating-system: 'ubuntu-20.04'
             php-version: '7.4'
             job-description: 'with lowest deps'
-            composer-flags: '--prefer-stable --prefer-lowest' # should be checked on the lowest supported PHP version
+            composer-flags: '--prefer-lowest' # should be checked on the lowest supported PHP version
 
           - operating-system: 'ubuntu-20.04'
             php-version: '7.4'
@@ -68,12 +68,12 @@ jobs:
           - operating-system: 'windows-latest'
             php-version: '8.2'
             job-description: 'on Windows'
-            FAST_LINT_TEST_CASES: 1
+            FAST_LINT_TEST_CASES: 1 # we need full syntax check on one job at least, no need to do it on additional systems
 
           - operating-system: 'macos-latest'
             php-version: '8.2'
             job-description: 'on macOS'
-            FAST_LINT_TEST_CASES: 1
+            FAST_LINT_TEST_CASES: 1 # we need full syntax check on one job at least, no need to do it on additional systems
 
     name: PHP ${{ matrix.php-version }} ${{ matrix.job-description }}
 

+ 1 - 0
composer.json

@@ -74,6 +74,7 @@
             "ergebnis/composer-normalize": true,
             "infection/extension-installer": false
         },
+        "prefer-stable": true,
         "sort-packages": true
     },
     "scripts": {

+ 3 - 2
dev-tools/composer.json

@@ -8,9 +8,9 @@
         "mi-schi/phpmd-extension": "^4.3.0",
         "phpmd/phpmd": "^2.14.1",
         "phpstan/extension-installer": "^1.3.1",
-        "phpstan/phpstan": "^1.10.39",
+        "phpstan/phpstan": "^1.10.40",
         "phpstan/phpstan-phpunit": "^1.3.15",
-        "phpstan/phpstan-strict-rules": "^1.5.1"
+        "phpstan/phpstan-strict-rules": "^1.5.2"
     },
     "config": {
         "allow-plugins": {
@@ -21,6 +21,7 @@
         "platform": {
             "php": "8.2"
         },
+        "prefer-stable": true,
         "sort-packages": true
     }
 }

+ 13 - 13
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": "b320db315846233c6130cddbda328955",
+    "content-hash": "07be4a257d1df65f66bf72cb2e0e2942",
     "packages": [
         {
             "name": "amphp/amp",
@@ -2655,16 +2655,16 @@
         },
         {
             "name": "phpstan/phpstan",
-            "version": "1.10.39",
+            "version": "1.10.40",
             "source": {
                 "type": "git",
                 "url": "https://github.com/phpstan/phpstan.git",
-                "reference": "d9dedb0413f678b4d03cbc2279a48f91592c97c4"
+                "reference": "93c84b5bf7669920d823631e39904d69b9c7dc5d"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/phpstan/phpstan/zipball/d9dedb0413f678b4d03cbc2279a48f91592c97c4",
-                "reference": "d9dedb0413f678b4d03cbc2279a48f91592c97c4",
+                "url": "https://api.github.com/repos/phpstan/phpstan/zipball/93c84b5bf7669920d823631e39904d69b9c7dc5d",
+                "reference": "93c84b5bf7669920d823631e39904d69b9c7dc5d",
                 "shasum": ""
             },
             "require": {
@@ -2713,7 +2713,7 @@
                     "type": "tidelift"
                 }
             ],
-            "time": "2023-10-17T15:46:26+00:00"
+            "time": "2023-10-30T14:48:31+00:00"
         },
         {
             "name": "phpstan/phpstan-phpunit",
@@ -2769,21 +2769,21 @@
         },
         {
             "name": "phpstan/phpstan-strict-rules",
-            "version": "1.5.1",
+            "version": "1.5.2",
             "source": {
                 "type": "git",
                 "url": "https://github.com/phpstan/phpstan-strict-rules.git",
-                "reference": "b21c03d4f6f3a446e4311155f4be9d65048218e6"
+                "reference": "7a50e9662ee9f3942e4aaaf3d603653f60282542"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/phpstan/phpstan-strict-rules/zipball/b21c03d4f6f3a446e4311155f4be9d65048218e6",
-                "reference": "b21c03d4f6f3a446e4311155f4be9d65048218e6",
+                "url": "https://api.github.com/repos/phpstan/phpstan-strict-rules/zipball/7a50e9662ee9f3942e4aaaf3d603653f60282542",
+                "reference": "7a50e9662ee9f3942e4aaaf3d603653f60282542",
                 "shasum": ""
             },
             "require": {
                 "php": "^7.2 || ^8.0",
-                "phpstan/phpstan": "^1.10"
+                "phpstan/phpstan": "^1.10.34"
             },
             "require-dev": {
                 "nikic/php-parser": "^4.13.0",
@@ -2812,9 +2812,9 @@
             "description": "Extra strict and opinionated rules for PHPStan",
             "support": {
                 "issues": "https://github.com/phpstan/phpstan-strict-rules/issues",
-                "source": "https://github.com/phpstan/phpstan-strict-rules/tree/1.5.1"
+                "source": "https://github.com/phpstan/phpstan-strict-rules/tree/1.5.2"
             },
-            "time": "2023-03-29T14:47:40+00:00"
+            "time": "2023-10-30T14:35:06+00:00"
         },
         {
             "name": "psr/container",