Skip to content

Commit a3270fe

Browse files
committed
Change collect to raw array method
1 parent 6f66e17 commit a3270fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TypeScriptifyModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public function __construct(
9090
* @return bool
9191
*/
9292
private function hasSupportedDatabaseConnection(): bool {
93-
return collect(self::SUPPORTED_DATABASE_CONNECTIONS)->contains(DB::getDefaultConnection());
93+
return in_array(DB::getDefaultConnection(), self::SUPPORTED_DATABASE_CONNECTIONS);
9494
}
9595

9696
/**

0 commit comments

Comments
 (0)