diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 51e9464..1000d04 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -5,6 +5,11 @@ parameters: count: 1 path: src/ManagedDatabases.php + - + message: "#^Call to an undefined static method Illuminate\\\\Support\\\\Facades\\\\Schema\\:\\:databaseExists\\(\\)\\.$#" + count: 1 + path: src/ManagedDatabases.php + - message: "#^Call to an undefined method Pest\\\\PendingCalls\\\\TestCall\\:\\:expect\\(\\)\\.$#" count: 1 diff --git a/src/ManagedDatabases.php b/src/ManagedDatabases.php index 07e40c9..d7fe292 100755 --- a/src/ManagedDatabases.php +++ b/src/ManagedDatabases.php @@ -97,7 +97,7 @@ public static function createDatabase($database, $managerConnection = 'manager_s throw new UnsupportedDriver('The driver '.$driver.' is not supported by the '.$macro.' macro'); } - if (Schema::databaseExist(static::makeDatabaseName($database, $managerConnection, $disk))) { + if (Schema::databaseExists(static::makeDatabaseName($database, $managerConnection, $disk))) { $database = (string) $database.'_1'; static::createDatabase($database, $managerConnection, $disk); }