Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix PHP 8.0 warning #6

Merged
merged 1 commit into from Oct 2, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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