Skip to content

Commit b936781

Browse files
committed
Fixed PHPStan issues
1 parent 3e1aefc commit b936781

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/integration/bootstrap.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
$application = new Application($kernel);
2222
$application->setAutoExit(false);
2323

24-
if (getenv('DATABASE_URL') !== false && 'sqlite' !== substr(getenv('DATABASE_URL'), 0, 6)) {
24+
$databaseUrl = getenv('DATABASE_URL');
25+
if ($databaseUrl !== false && str_starts_with($databaseUrl, 'sqlite')) {
2526
$application->run(new ArrayInput([
2627
'command' => 'doctrine:database:drop',
2728
'--if-exists' => '1',

0 commit comments

Comments
 (0)