@@ -36,7 +36,7 @@ |
||
| 36 | 36 | |
| 37 | 37 | public function getFirstError() : Error |
| 38 | 38 | { |
| 39 | - return $this->errors[0]; |
|
| 39 | + return $this->errors[ 0 ]; |
|
| 40 | 40 | |
| 41 | 41 | } |
| 42 | 42 | } |
| 43 | 43 | \ No newline at end of file |
@@ -7,7 +7,7 @@ |
||
| 7 | 7 | abstract class Result |
| 8 | 8 | { |
| 9 | 9 | private $valid; |
| 10 | - protected $errors = []; |
|
| 10 | + protected $errors = [ ]; |
|
| 11 | 11 | |
| 12 | 12 | public function __construct(bool $valid, Error... $errors) |
| 13 | 13 | { |