Skip to content

Commit ba46f13

Browse files
committed
fix test
1 parent 2475a75 commit ba46f13

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

.github/workflows/e2e-tests.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -320,16 +320,20 @@ jobs:
320320
cd e2e/composer-no-versions
321321
composer install
322322
../../bin/phpstan analyze test.php --level=0
323-
- script: |
324-
cd e2e/composer-version-config
325-
composer install
326-
../../bin/phpstan analyze test.php --level=0
327323
- script: |
328324
cd e2e/composer-version-config-invalid
329325
OUTPUT=$(../bashunit -a exit_code "1" ../../bin/phpstan)
330326
echo "$OUTPUT"
331327
../bashunit -a contains 'Invalid configuration' "$OUTPUT"
332328
../bashunit -a contains 'Invalid PHP version range: phpVersion.max should be greater or equal to phpVersion.min.' "$OUTPUT"
329+
- script: |
330+
cd e2e/composer-version-config-patch
331+
composer install
332+
../../bin/phpstan analyze test.php --level=0
333+
- script: |
334+
cd e2e/composer-version-config
335+
composer install
336+
../../bin/phpstan analyze test.php --level=0
333337
334338
steps:
335339
- name: "Checkout"
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
// constraint from composer.json is overruled by phpstan.neon config
4-
\PHPStan\Testing\assertType('int<80001, 80015>', PHP_VERSION_ID);
4+
\PHPStan\Testing\assertType('int<80002, 80015>', PHP_VERSION_ID);
55
\PHPStan\Testing\assertType('8', PHP_MAJOR_VERSION);
66
\PHPStan\Testing\assertType('0', PHP_MINOR_VERSION);
7-
\PHPStan\Testing\assertType('int<1, 15>', PHP_RELEASE_VERSION);
7+
\PHPStan\Testing\assertType('int<2, 15>', PHP_RELEASE_VERSION);

0 commit comments

Comments
 (0)