Skip to content

Fix PHP 7.4 build#5662

Merged
staabm merged 1 commit into
phpstan:2.1.xfrom
staabm:fix742
May 14, 2026
Merged

Fix PHP 7.4 build#5662
staabm merged 1 commit into
phpstan:2.1.xfrom
staabm:fix742

Conversation

@staabm
Copy link
Copy Markdown
Contributor

@staabm staabm commented May 14, 2026

fixes

1) PHPStan\Analyser\AnalyserIntegrationTest::testBug14604
Failed asserting that actual size 4 matches expected size 0.

Emitted errors:
- Throw expression is supported only on PHP 8.0 and later
  in /home/runner/work/phpstan-src/phpstan-src/tests/PHPStan/Analyser/data/bug-14604.php on line 11

- Throw expression is supported only on PHP 8.0 and later
  in /home/runner/work/phpstan-src/phpstan-src/tests/PHPStan/Analyser/data/bug-14604.php on line 17

- Throw expression is supported only on PHP 8.0 and later
  in /home/runner/work/phpstan-src/phpstan-src/tests/PHPStan/Analyser/data/bug-14604.php on line 29

- Throw expression is supported only on PHP 8.0 and later
  in /home/runner/work/phpstan-src/phpstan-src/tests/PHPStan/Analyser/data/bug-14604.php on line 45

/home/runner/work/phpstan-src/phpstan-src/src/Testing/PHPStanTestCase.php:158
/home/runner/work/phpstan-src/phpstan-src/tests/PHPStan/Analyser/AnalyserIntegrationTest.php:206
/home/runner/work/phpstan-src/phpstan-src/tests/vendor/phpunit/phpunit/src/TextUI/Command.php:146

@staabm staabm merged commit fb53a12 into phpstan:2.1.x May 14, 2026
386 checks passed
@staabm staabm deleted the fix742 branch May 14, 2026 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants