Skip to content

Commit

Permalink
fixed phpcs code style
Browse files Browse the repository at this point in the history
  • Loading branch information
manfred-w committed Mar 5, 2024
1 parent 0e00958 commit b2638db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Propel/Generator/Reverse/MysqlSchemaParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ public function getColumnFromRow(array $row, Table $table): Column
// BLOBs can't have any default values in MySQL

$default = $row['Default'];
if (!empty($default)) {
if ($default !== null) {
if (preg_match('~blob|text~', $nativeType)) {
// mariadb has extra single quotes on TEXT type default values, but not on other types
$default = preg_replace('@^\'(.*)\'$@', '$1', $row['Default']);
Expand Down

0 comments on commit b2638db

Please sign in to comment.