Skip to content

Commit fd8044a

Browse files
deguiffabpot
authored andcommitted
Replace get_class() calls by ::class
1 parent b9dbd53 commit fd8044a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Requirement/EnumRequirement.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function __construct(string|array $cases = [])
3838
throw new InvalidArgumentException(sprintf('Case must be a "BackedEnum" instance, "%s" given.', get_debug_type($case)));
3939
}
4040

41-
$class ??= \get_class($case);
41+
$class ??= $case::class;
4242

4343
if (!$case instanceof $class) {
4444
throw new InvalidArgumentException(sprintf('"%s::%s" is not a case of "%s".', get_debug_type($case), $case->name, $class));

0 commit comments

Comments
 (0)