@@ -76,7 +76,7 @@ |
||
| 76 | 76 | return $value; |
| 77 | 77 | } |
| 78 | 78 | |
| 79 | - if (!in_array($this->returnType, [static::RETURN_TYPE_BOOL, static::RETURN_TYPE_INT,])) { |
|
| 79 | + if (!in_array($this->returnType, [static::RETURN_TYPE_BOOL, static::RETURN_TYPE_INT, ])) { |
|
| 80 | 80 | throw new InvalidConfigException("Invalid return type {$this->returnType}"); |
| 81 | 81 | } |
| 82 | 82 | return $this->returnType === static::RETURN_TYPE_BOOL ? $value : (int)$value; |