@@ -32,13 +32,13 @@ |
||
| 32 | 32 | * |
| 33 | 33 | * @return string|array|int |
| 34 | 34 | */ |
| 35 | - public function __invoke(int $toType = Type::ARRAY) |
|
| 35 | + public function __invoke(int $toType = Type::array) |
|
| 36 | 36 | { |
| 37 | 37 | if ($toType === Type::INT) { |
| 38 | 38 | return $this->count(); |
| 39 | 39 | } |
| 40 | 40 | |
| 41 | - if ($toType === Type::ARRAY) { |
|
| 41 | + if ($toType === Type::array) { |
|
| 42 | 42 | return $this->toArray(); |
| 43 | 43 | } |
| 44 | 44 | |