mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-06-25 12:01:34 +00:00
Fixed phpstan issue
This commit is contained in:
parent
b8fc5d4ace
commit
eb7da91c44
1 changed files with 1 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ class SQLiteRegexExtensionMiddlewareDriver extends AbstractDriverMiddleware
|
|||
if($native_connection instanceof \PDO) {
|
||||
|
||||
//Use the new PDO::createFunction and PDO::createCollation methods if available (PHP 8.4+)
|
||||
if (is_a($native_connection, \PDO\Sqlite::class)) { #TODO: Remove this check when PHP 8.4 is the minimum requirement
|
||||
if (is_a($native_connection, Sqlite::class)) { #TODO: Remove this check when PHP 8.4 is the minimum requirement
|
||||
$native_connection->createFunction('REGEXP', self::regexp(...), 2, Sqlite::DETERMINISTIC);
|
||||
$native_connection->createFunction('FIELD', self::field(...), -1, Sqlite::DETERMINISTIC);
|
||||
$native_connection->createFunction('FIELD2', self::field2(...), 2, Sqlite::DETERMINISTIC);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue