PHP 8.1 Support (#1274)

* test against php 8.1

* fix tests
This commit is contained in:
Sergiy Petrov
2021-10-31 14:55:33 +01:00
committed by GitHub
parent a091b9c94a
commit 01be015f86
4 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -45,14 +45,14 @@ class EloquentCommandTest extends TestCase
$this->assertMatchesTxtSnapshot($actualContent);
$display = $tester->getDisplay();
$this->assertRegExp(
$this->assertMatchesRegularExpression(
';Unexpected no document on Illuminate\\\Database\\\Eloquent\\\Model;',
$display
);
$modelClassFilePath = preg_quote(
str_replace('/', DIRECTORY_SEPARATOR, '/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php')
);
$this->assertRegExp(
$this->assertMatchesRegularExpression(
';Wrote expected docblock to .*' . $modelClassFilePath . ';',
$display
);