Skip to content

Commit 3156c87

Browse files
committed
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)
1 parent 17706f8 commit 3156c87

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

src/Features/DisallowSqliteAttach.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ protected function setNativeAuthorizer(PDO $pdo): void
7474
// @phpstan-ignore method.notFound
7575
$pdo->setAuthorizer(static function (int $action): int {
7676
return $action === 24 // SQLITE_ATTACH
77-
? PDO\Sqlite::DENY
78-
: PDO\Sqlite::OK;
77+
? PDO\Sqlite::DENY // @phpstan-ignore classConstant.notFound
78+
: PDO\Sqlite::OK; // @phpstan-ignore classConstant.notFound
7979
});
8080
}
8181
}

src/helpers.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ function tenant(?string $key = null): mixed
3030
return app(Tenant::class);
3131
}
3232

33-
// @phpstan-ignore-next-line nullsafe.neverNull
3433
return app(Tenant::class)?->getAttribute($key);
3534
}
3635
}

0 commit comments

Comments
 (0)