1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-08-06 03:54:04 +00:00

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)
This commit is contained in:
Samuel Stancl 2026-06-30 19:30:50 -07:00
parent 17706f8e2c
commit 3156c87ee3
No known key found for this signature in database
GPG key ID: BA146259A1E16C57
2 changed files with 2 additions and 3 deletions

View file

@ -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
});
}
}

View file

@ -30,7 +30,6 @@ if (! function_exists('tenant')) {
return app(Tenant::class);
}
// @phpstan-ignore-next-line nullsafe.neverNull
return app(Tenant::class)?->getAttribute($key);
}
}