@@ -57,7 +57,7 @@ |
||
57 | 57 | } |
58 | 58 | |
59 | 59 | break; |
60 | - case Type::ARRAY: |
|
60 | + case Type::array: |
|
61 | 61 | if ($this->contains(',')) { |
62 | 62 | return $this->explode(',')->toArray(); |
63 | 63 | } |
@@ -28,12 +28,12 @@ |
||
28 | 28 | * |
29 | 29 | * @return string|array|int |
30 | 30 | */ |
31 | - public function __invoke(int $toType = Type::ARRAY) |
|
31 | + public function __invoke(int $toType = Type::array) |
|
32 | 32 | { |
33 | 33 | switch ($toType) { |
34 | 34 | case Type::INT: |
35 | 35 | return $this->count(); |
36 | - case Type::ARRAY: |
|
36 | + case Type::array: |
|
37 | 37 | return $this->toArray(); |
38 | 38 | case Type::STRING: |
39 | 39 | try { |