Skip to content

Commit

Permalink
Merge pull request #6 from ausi/fix/php-8-compat
Browse files Browse the repository at this point in the history
Fix PHP 8.0 warning
  • Loading branch information
DASPRiD committed Oct 2, 2020
2 parents 6ccc0d7 + 61861aa commit 5abf82f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/AbstractEnum.php
Expand Up @@ -85,7 +85,7 @@ final public static function valueOf(string $name) : self
/**
* @return static
*/
final private static function createValue(string $name, int $ordinal, array $arguments) : self
private static function createValue(string $name, int $ordinal, array $arguments) : self
{
$instance = new static(...$arguments);
$instance->name = $name;
Expand Down Expand Up @@ -125,7 +125,7 @@ final public static function values() : array
return self::$values[static::class];
}

final private static function constants() : array
private static function constants() : array
{
if (isset(self::$constants[static::class])) {
return self::$constants[static::class];
Expand Down

0 comments on commit 5abf82f

Please sign in to comment.