Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Jan 1, 2024
1 parent d9808c1 commit 54015a5
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/Command/ModelCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -1486,11 +1486,9 @@ protected function getEnumDefinitions(TableSchemaInterface $schema): array
$dbType = TypeFactory::build($columnSchema['type']);
if ($dbType instanceof EnumType) {
$class = $dbType->getEnumClassName();
/** @var \BackedEnum $enum */
$rEnum = new ReflectionEnum($class);
$rBackingType = $rEnum->getBackingType();
$type = (string)$rBackingType;
if ($type === 'int') {
$reflectionEnum = new ReflectionEnum($class);
$backingType = (string)$reflectionEnum->getBackingType();
if ($backingType === 'int') {
$isInt = true;

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

View check run for this annotation

Codecov / codecov/patch

src/Command/ModelCommand.php#L1483-L1492

Added lines #L1483 - L1492 were not covered by tests
}
}
Expand Down

0 comments on commit 54015a5

Please sign in to comment.