Skip to content

Commit

Permalink
Merge pull request #47 from Soullivaneuh/enum-types-coverage
Browse files Browse the repository at this point in the history
Enum types coverage
  • Loading branch information
greg0ire authored Jun 23, 2016
2 parents ba76e2e + 55d79ef commit 69a558c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/AbstractEnum.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ final public static function isValidValue($value, $strict = true)
/**
* Adds possibility several classes together.
*
* @return array
* @return string|string[]
*/
protected static function getEnumTypes()
{
Expand Down
2 changes: 1 addition & 1 deletion test/Fixtures/FooEnum.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ final class FooEnum extends AbstractEnum
{
protected static function getEnumTypes()
{
return [FooInterface::class];
return FooInterface::class;
}
}

0 comments on commit 69a558c

Please sign in to comment.