Skip to content

Commit

Permalink
Style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
DidierLmn committed Jul 27, 2023
1 parent 4225818 commit 341b7cf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion ModelDescriber/EnumModelDescriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function describe(Model $model, Schema $schema)
}

$reflectionEnum = new \ReflectionEnum($enumClass);
if ($reflectionEnum->isBacked() && $reflectionEnum->getBackingType()->getName() === 'int') {
if ($reflectionEnum->isBacked() && 'int' === $reflectionEnum->getBackingType()->getName()) {
$schema->type = 'integer';
} else {
$schema->type = 'string';
Expand Down
1 change: 0 additions & 1 deletion Tests/Functional/FunctionalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,6 @@ public function testEnumSupport()
$this->assertSame('string', $model->type);
$this->assertCount(2, $model->enum);


$model = $this->getModel('ArticleType81IntBacked');

$this->assertSame('integer', $model->type);
Expand Down

0 comments on commit 341b7cf

Please sign in to comment.