We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7b987d commit 65bf4acCopy full SHA for 65bf4ac
src/MabeEnum/Enum.php
@@ -147,7 +147,7 @@ final public function is($enum)
147
final public static function get($value, $tradeExtendedAsUnknown = true)
148
{
149
if ($value instanceof static) {
150
- if ($tradeExtendedAsUnknown && !defined(get_called_class() . '::' . $value->getName())) {
+ if ($tradeExtendedAsUnknown && !defined('static::' . $value->getName())) {
151
throw new InvalidArgumentException(sprintf(
152
"%s::%s is not inherited from %s",
153
get_class($value),
0 commit comments