Skip to content

Commit facf0bf

Browse files
Code formatting
1 parent 82ec4ac commit facf0bf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Enum.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,8 @@ public static function __callStatic($name, $arguments)
227227
if (!isset(self::$instances[$class][$name])) {
228228
$array = static::toArray();
229229
if (!isset($array[$name]) && !\array_key_exists($name, $array)) {
230-
throw new \BadMethodCallException("No static method or enum constant '$name' in class " . static::class);
230+
$message = "No static method or enum constant '$name' in class " . static::class;
231+
throw new \BadMethodCallException($message);
231232
}
232233
return self::$instances[$class][$name] = new static($array[$name]);
233234
}

0 commit comments

Comments
 (0)