Skip to content

Commit

Permalink
Update src/Command/ModelCommand.php
Browse files Browse the repository at this point in the history
Co-authored-by: Mark Story <[email protected]>
  • Loading branch information
dereuromark and markstory authored Dec 31, 2023
1 parent b38aab9 commit 1a1b5b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Command/ModelCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -1475,7 +1475,7 @@ protected function getEnumDefinitions(TableSchemaInterface $schema): array
}

$enumsDefinitionString = trim(mb_substr($columnSchema['comment'], strpos($columnSchema['comment'], '[enum]') + 6));
$isInt = in_array($columnSchema['type'], ['integer', 'tinyinteger', 'smallinteger', true]);
$isInt = in_array($columnSchema['type'], ['integer', 'tinyinteger', 'smallinteger'], true);
$enumsDefinition = EnumParser::parseCases($enumsDefinitionString, $isInt);
if (!$enumsDefinition) {
continue;

Check warning on line 1481 in src/Command/ModelCommand.php

View check run for this annotation

Codecov / codecov/patch

src/Command/ModelCommand.php#L1477-L1481

Added lines #L1477 - L1481 were not covered by tests
Expand Down

0 comments on commit 1a1b5b8

Please sign in to comment.