Skip to content

Commit 10581f6

Browse files
committed
fix new Psalm error
1 parent 149a2e7 commit 10581f6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Propel/Generator/Reverse/MysqlSchemaParser.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
use function explode;
2525
use function implode;
2626
use function in_array;
27-
use function is_array;
2827
use function preg_match;
2928
use function preg_match_all;
3029
use function sprintf;
@@ -576,7 +575,7 @@ protected function addForeignKeys(Table $table): void
576575
$result = null;
577576
$regex = sprintf('/ %s (%s)/', $fkaction, $pipedActionsString);
578577
preg_match($regex, $fkey, $result);
579-
if ($result && is_array($result) && isset($result[1])) {
578+
if ($result) {
580579
$fkactions[$fkaction] = $result[1];
581580
}
582581
}

0 commit comments

Comments
 (0)