Skip to content

Commit e25ee88

Browse files
Merge branch '2.0.x' into get-defined-vars
2 parents 4b62aaa + 9c06f13 commit e25ee88

File tree

122 files changed

+1851
-371
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

122 files changed

+1851
-371
lines changed

.github/workflows/e2e-tests.yml

Lines changed: 50 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,10 @@ jobs:
229229
echo "$OUTPUT"
230230
../bashunit -a contains 'Child process error (exit code 255): PHP Fatal error' "$OUTPUT"
231231
../bashunit -a contains 'Result is incomplete because of severe errors.' "$OUTPUT"
232+
- script: |
233+
cd e2e/bug-11857
234+
composer install
235+
../../bin/phpstan
232236
233237
steps:
234238
- name: "Checkout"
@@ -249,7 +253,7 @@ jobs:
249253
run: "patch src/Analyser/Error.php < e2e/PHPStanErrorPatch.patch"
250254

251255
- name: "Install bashunit"
252-
run: "curl -s https://bashunit.typeddevs.com/install.sh | bash -s e2e/ 0.17.0"
256+
run: "curl -s https://bashunit.typeddevs.com/install.sh | bash -s e2e/ 0.18.0"
253257

254258
- name: "Test"
255259
run: "${{ matrix.script }}"
@@ -292,6 +296,48 @@ jobs:
292296
- script: |
293297
cd e2e/bug-11819
294298
../../bin/phpstan
299+
- script: |
300+
cd e2e/composer-max-version
301+
composer install
302+
../../bin/phpstan analyze test.php --level=0
303+
- script: |
304+
cd e2e/composer-min-max-version
305+
composer install
306+
../../bin/phpstan analyze test.php --level=0
307+
- script: |
308+
cd e2e/composer-min-open-end-version
309+
composer install
310+
../../bin/phpstan analyze test.php --level=0
311+
- script: |
312+
cd e2e/composer-min-version-v5
313+
composer install --ignore-platform-reqs
314+
../../bin/phpstan analyze test.php --level=0
315+
- script: |
316+
cd e2e/composer-min-version-v7
317+
composer install --ignore-platform-reqs
318+
../../bin/phpstan analyze test.php --level=0
319+
- script: |
320+
cd e2e/composer-min-version
321+
composer install
322+
../../bin/phpstan analyze test.php --level=0
323+
- script: |
324+
cd e2e/composer-no-versions
325+
composer install
326+
../../bin/phpstan analyze test.php --level=0
327+
- script: |
328+
cd e2e/composer-version-config-invalid
329+
OUTPUT=$(../bashunit -a exit_code "1" ../../bin/phpstan)
330+
echo "$OUTPUT"
331+
../bashunit -a contains 'Invalid configuration' "$OUTPUT"
332+
../bashunit -a contains 'Invalid PHP version range: phpVersion.max should be greater or equal to phpVersion.min.' "$OUTPUT"
333+
- script: |
334+
cd e2e/composer-version-config-patch
335+
composer install --ignore-platform-reqs
336+
../../bin/phpstan analyze test.php --level=0
337+
- script: |
338+
cd e2e/composer-version-config
339+
composer install
340+
../../bin/phpstan analyze test.php --level=0
295341
296342
steps:
297343
- name: "Checkout"
@@ -308,5 +354,8 @@ jobs:
308354
- name: "Install dependencies"
309355
run: "composer install --no-interaction --no-progress"
310356

357+
- name: "Install bashunit"
358+
run: "curl -s https://bashunit.typeddevs.com/install.sh | bash -s e2e/ 0.18.0"
359+
311360
- name: "Test"
312361
run: ${{ matrix.script }}

.github/workflows/phar.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -103,14 +103,14 @@ jobs:
103103

104104
- name: "Delete checksum PHAR"
105105
run: "rm tmp/phpstan.phar"
106-
#
107-
# integration-tests:
108-
# if: github.event_name == 'pull_request'
109-
# needs: compiler-tests
110-
# uses: phpstan/phpstan/.github/workflows/integration-tests.yml@2.0.x
111-
# with:
112-
# ref: 2.0.x
113-
# phar-checksum: ${{needs.compiler-tests.outputs.checksum}}
106+
107+
integration-tests:
108+
if: github.event_name == 'pull_request'
109+
needs: compiler-tests
110+
uses: phpstan/phpstan/.github/workflows/integration-tests.yml@2.0.x
111+
with:
112+
ref: 2.0.x
113+
phar-checksum: ${{needs.compiler-tests.outputs.checksum}}
114114

115115
extension-tests:
116116
if: github.event_name == 'pull_request'
@@ -211,9 +211,6 @@ jobs:
211211
env:
212212
GPG_ID: ${{ steps.import-gpg.outputs.fingerprint }}
213213

214-
- name: "cp UPGRADING.md"
215-
run: cp phpstan-src/UPGRADING.md phpstan-dist/UPGRADING.md
216-
217214
- name: "Verify PHAR"
218215
working-directory: phpstan-dist
219216
run: "gpg --verify phpstan.phar.asc"

UPGRADING.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,6 @@ Appending `(?)` in `ignoreErrors` is not supported.
112112
* `constant_hassers` -> use `constantHassers`
113113
* `console_application_loader` -> use `consoleApplicationLoader`
114114

115-
### Docker images no longer tagged without a PHP version
116-
117-
Tags without a PHP version are no longer published - `nightly`, `2`, `latest` are no longer updated. Instead, use `nightly-php8.3`, `2-php8.3`, `latest-php8.3`. You can replace `8.3` with PHP versions `8.0`-`8.3`.
118-
119115
### Minor backward compatibility breaks
120116

121117
* Removed unused config parameter `cache.nodesByFileCountMax`

0 commit comments

Comments
 (0)