We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 149a2e7 commit 10581f6Copy full SHA for 10581f6
src/Propel/Generator/Reverse/MysqlSchemaParser.php
@@ -24,7 +24,6 @@
24
use function explode;
25
use function implode;
26
use function in_array;
27
-use function is_array;
28
use function preg_match;
29
use function preg_match_all;
30
use function sprintf;
@@ -576,7 +575,7 @@ protected function addForeignKeys(Table $table): void
576
575
$result = null;
577
$regex = sprintf('/ %s (%s)/', $fkaction, $pipedActionsString);
578
preg_match($regex, $fkey, $result);
579
- if ($result && is_array($result) && isset($result[1])) {
+ if ($result) {
580
$fkactions[$fkaction] = $result[1];
581
}
582
0 commit comments