Completed
Pull Request — master (#18)
by Tom
42:19
created
src/Enum.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -57,6 +57,9 @@
 block discarded – undo
57 57
         throw new BadMethodCallException(sprintf('Call to undefined method %s->%s()', static::class, $name));
58 58
     }
59 59
 
60
+    /**
61
+     * @param string $name
62
+     */
60 63
     public static function __callStatic($name, $arguments)
61 64
     {
62 65
         $name = strtolower($name);
Please login to merge, or discard this patch.
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -4,13 +4,13 @@
 block discarded – undo
4 4
 
5 5
 namespace Spatie\Enum;
6 6
 
7
-use TypeError;
8
-use ReflectionClass;
7
+use BadMethodCallException;
9 8
 use JsonSerializable;
9
+use ReflectionClass;
10 10
 use ReflectionMethod;
11
-use BadMethodCallException;
12 11
 use Spatie\Enum\Exceptions\InvalidIndexException;
13 12
 use Spatie\Enum\Exceptions\InvalidValueException;
13
+use TypeError;
14 14
 
15 15
 abstract class Enum implements Enumerable, JsonSerializable
16 16
 {
Please login to merge, or discard this patch.