From 3156c87ee3c3c26422db08dfc202182cdbb00a33 Mon Sep 17 00:00:00 2001 From: Samuel Stancl Date: Tue, 30 Jun 2026 19:30:50 -0700 Subject: [PATCH] phpstan fixes old ignore no longer necessary, two new ignores are needed (the added ignores are not necessary in PHP 8.5 but at this time our CI still runs on PHP 8.4) --- src/Features/DisallowSqliteAttach.php | 4 ++-- src/helpers.php | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Features/DisallowSqliteAttach.php b/src/Features/DisallowSqliteAttach.php index 5cbfbf50..e5ae5c8f 100644 --- a/src/Features/DisallowSqliteAttach.php +++ b/src/Features/DisallowSqliteAttach.php @@ -74,8 +74,8 @@ class DisallowSqliteAttach implements Feature // @phpstan-ignore method.notFound $pdo->setAuthorizer(static function (int $action): int { return $action === 24 // SQLITE_ATTACH - ? PDO\Sqlite::DENY - : PDO\Sqlite::OK; + ? PDO\Sqlite::DENY // @phpstan-ignore classConstant.notFound + : PDO\Sqlite::OK; // @phpstan-ignore classConstant.notFound }); } } diff --git a/src/helpers.php b/src/helpers.php index 0b812e65..75514714 100644 --- a/src/helpers.php +++ b/src/helpers.php @@ -30,7 +30,6 @@ if (! function_exists('tenant')) { return app(Tenant::class); } - // @phpstan-ignore-next-line nullsafe.neverNull return app(Tenant::class)?->getAttribute($key); } }