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 cad9c48 commit ec1d4fcCopy full SHA for ec1d4fc
src/Enum.php
@@ -119,7 +119,7 @@ public static function values()
119
public static function toArray()
120
{
121
$class = \get_called_class();
122
- if (!\array_key_exists($class, static::$cache)) {
+ if (!isset(static::$cache[$class])) {
123
$reflection = new \ReflectionClass($class);
124
static::$cache[$class] = $reflection->getConstants();
125
}
0 commit comments