From 0c7fca26b52071188cda508baeac0780de4b2e80 Mon Sep 17 00:00:00 2001 From: Sam Hauglustaine Date: Wed, 11 Dec 2024 11:43:23 +0100 Subject: [PATCH] ignore false phpstan error --- src/Propel/Generator/Reverse/MysqlSchemaParser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Propel/Generator/Reverse/MysqlSchemaParser.php b/src/Propel/Generator/Reverse/MysqlSchemaParser.php index 0e1350739..b80dfc5dd 100644 --- a/src/Propel/Generator/Reverse/MysqlSchemaParser.php +++ b/src/Propel/Generator/Reverse/MysqlSchemaParser.php @@ -237,7 +237,7 @@ public function getColumnFromRow(array $row, Table $table): Column $/x'; if (preg_match($regexp, $row['Type'], $matches)) { $nativeType = $matches[1]; - if ($matches[2]) { + if ($matches[2]) { // @phpstan-ignore if.alwaysTrue (see https://github.com/propelorm/Propel2/pull/2020#issuecomment-2535374330) $cpos = strpos($matches[2], ','); if ($cpos !== false) { $size = (int)substr($matches[2], 0, $cpos);