Completed
Pull Request — master (#18)
by Tom
16:29 queued 05:33
created
src/Enum.php 2 patches
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.
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -23,6 +23,10 @@
 block discarded – undo
23 23
     /** @var int */
24 24
     protected $index;
25 25
 
26
+    /**
27
+     * @param string $value
28
+     * @param integer $index
29
+     */
26 30
     public function __construct(?string $value = null, ?int $index = null)
27 31
     {
28 32
         if (is_null($value) && is_null($index)) {
Please login to merge, or discard this patch.