Skip to content

Commit 2ef9166

Browse files
deguiffabpot
authored andcommitted
Replace get_class() calls by ::class
1 parent b01d384 commit 2ef9166

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Inline.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public static function dump(mixed $value, int $flags = 0): string
112112
case $value instanceof \DateTimeInterface:
113113
return $value->format('c');
114114
case $value instanceof \UnitEnum:
115-
return sprintf('!php/const %s::%s', \get_class($value), $value->name);
115+
return sprintf('!php/const %s::%s', $value::class, $value->name);
116116
case \is_object($value):
117117
if ($value instanceof TaggedValue) {
118118
return '!'.$value->getTag().' '.self::dump($value->getValue(), $flags);

0 commit comments

Comments
 (0)