diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index e81569a1..31b175fb 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -51,3 +51,10 @@ parameters: message: "#^Method Tests\\\\LaraStrict\\\\Feature\\\\Translations\\\\InvalidServiceProviderTranslations\\:\\:getProviderClass\\(\\) should return class\\-string\\ but returns string\\.$#" count: 1 path: tests/Feature/Translations/InvalidServiceProviderTranslations.php + + # forward compatibility + - + message: "#^Attribute class PHPUnit\\\\Framework\\\\Attributes\\\\BeforeClass does not exist\\.$#" + count: 1 + path: tests/Unit/Database/Services/ChunkWriteServiceTest.php + # forward compatibility diff --git a/src/Tests/Traits/SqlTestEnable.php b/src/Tests/Traits/SqlTestEnable.php index c4fae28e..8ffecd81 100644 --- a/src/Tests/Traits/SqlTestEnable.php +++ b/src/Tests/Traits/SqlTestEnable.php @@ -10,12 +10,14 @@ use Illuminate\Database\SQLiteConnection; use PDO; use PHPUnit\Framework\Assert; +use PHPUnit\Framework\Attributes\BeforeClass; trait SqlTestEnable { /** * @beforeClass */ + #[BeforeClass] final public static function beforeClassSqlTestEnable(): void { $resolver = new ConnectionResolver([