Skip to content

Commit 31842bd

Browse files
committed
Run E2E tests on PHP 8
1 parent 8005f65 commit 31842bd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/e2e-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
fail-fast: false
2323
matrix:
2424
php-version:
25-
- "7.4"
25+
- "8.0"
2626
operating-system: [ubuntu-latest, windows-latest]
2727

2828
steps:
@@ -70,7 +70,7 @@ jobs:
7070
uses: "shivammathur/setup-php@v2"
7171
with:
7272
coverage: "none"
73-
php-version: "7.4"
73+
php-version: "8.0"
7474
tools: ${{ matrix.tools }}
7575
extensions: ${{ matrix.extensions }}
7676

tests/e2e/ResultCacheEndToEndTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ private function runPhpstanWithErrors(): void
9797

9898
$fileHelper = new FileHelper(__DIR__);
9999

100-
$this->assertSame('Parameter #1 $source of function token_get_all expects string, PhpParser\Node\Expr\MethodCall given.', $result['files'][$fileHelper->normalizePath(__DIR__ . '/PHP-Parser/lib/PhpParser/Lexer.php')]['messages'][0]['message']);
100+
$this->assertSame('Parameter #1 $code of function token_get_all expects string, PhpParser\Node\Expr\MethodCall given.', $result['files'][$fileHelper->normalizePath(__DIR__ . '/PHP-Parser/lib/PhpParser/Lexer.php')]['messages'][0]['message']);
101101
$this->assertSame('Parameter #1 $code of method PhpParser\Lexer::startLexing() expects PhpParser\Node\Expr\MethodCall, string given.', $result['files'][$fileHelper->normalizePath(__DIR__ . '/PHP-Parser/lib/PhpParser/ParserAbstract.php')]['messages'][0]['message']);
102102
$this->assertSame('Parameter #1 (array{\'foo\'}) of echo cannot be converted to string.', $result['files'][$fileHelper->normalizePath(__DIR__ . '/PHP-Parser/lib/bootstrap.php')]['messages'][0]['message']);
103103
$this->assertResultCache(__DIR__ . '/resultCache_2.php');

0 commit comments

Comments
 (0)