Completed
Push — master ( cccc43...d888c1 )
by Tom
13s
created
src/Enum.php 2 patches
Unused Use Statements   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -4,15 +4,15 @@
 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
-use Spatie\Enum\Exceptions\InvalidIndexException;
13
-use Spatie\Enum\Exceptions\InvalidValueException;
14 11
 use Spatie\Enum\Exceptions\DuplicatedIndexException;
15 12
 use Spatie\Enum\Exceptions\DuplicatedValueException;
13
+use Spatie\Enum\Exceptions\InvalidIndexException;
14
+use Spatie\Enum\Exceptions\InvalidValueException;
15
+use TypeError;
16 16
 
17 17
 abstract class Enum implements Enumerable, JsonSerializable
18 18
 {
Please login to merge, or discard this patch.
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -25,6 +25,10 @@
 block discarded – undo
25 25
     /** @var string */
26 26
     protected $value;
27 27
 
28
+    /**
29
+     * @param string $value
30
+     * @param integer $index
31
+     */
28 32
     public function __construct(?string $value = null, ?int $index = null)
29 33
     {
30 34
         if (is_null($value) && is_null($index)) {
Please login to merge, or discard this patch.