Skip to content

Commit 01be015

Browse files
author
Sergiy Petrov
authored
PHP 8.1 Support (#1274)
* test against php 8.1 * fix tests
1 parent a091b9c commit 01be015

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

.github/workflows/run-integration-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
COMPOSER_NO_INTERACTION: 1
1919
strategy:
2020
matrix:
21-
php: [8.0, 7.4, 7.3]
21+
php: [8.1, 8.0, 7.4, 7.3]
2222
lumen: [8.*]
2323
name: P${{ matrix.php }} - Lumen${{ matrix.lumen }}
2424
steps:
@@ -75,7 +75,7 @@ jobs:
7575
COMPOSER_NO_INTERACTION: 1
7676
strategy:
7777
matrix:
78-
php: [8.0, 7.4, 7.3]
78+
php: [8.1, 8.0, 7.4, 7.3]
7979
laravel: [8.*]
8080
name: P${{ matrix.php }} - Laravel${{ matrix.laravel }}
8181
steps:

.github/workflows/run-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
strategy:
2121
matrix:
2222
os: [ubuntu-20.04, windows-2019]
23-
php: [8.0, 7.4, 7.3]
23+
php: [8.1, 8.0, 7.4, 7.3]
2424
laravel: [8.*]
2525
dependency-version: [prefer-lowest, prefer-stable]
2626
exclude:

src/Console/ModelsCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1335,7 +1335,7 @@ protected function getParamType(\ReflectionMethod $method, \ReflectionParameter
13351335
$docComment ?? '',
13361336
$matches
13371337
);
1338-
$type = $matches[1] ?? null;
1338+
$type = $matches[1] ?? '';
13391339

13401340
if (strpos($type, '|') !== false) {
13411341
$types = explode('|', $type);

tests/Console/EloquentCommandTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@ public function testCommand()
4545
$this->assertMatchesTxtSnapshot($actualContent);
4646

4747
$display = $tester->getDisplay();
48-
$this->assertRegExp(
48+
$this->assertMatchesRegularExpression(
4949
';Unexpected no document on Illuminate\\\Database\\\Eloquent\\\Model;',
5050
$display
5151
);
5252
$modelClassFilePath = preg_quote(
5353
str_replace('/', DIRECTORY_SEPARATOR, '/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php')
5454
);
55-
$this->assertRegExp(
55+
$this->assertMatchesRegularExpression(
5656
';Wrote expected docblock to .*' . $modelClassFilePath . ';',
5757
$display
5858
);

0 commit comments

Comments
 (0)