@@ -124,7 +124,7 @@ |
||
| 124 | 124 | } else { |
| 125 | 125 | $length = null; |
| 126 | 126 | } |
| 127 | - return [$type, $length , trim($match[3] ?? '')]; |
|
| 127 | + return [$type, $length, trim($match[3] ?? '')]; |
|
| 128 | 128 | } |
| 129 | 129 | } |
| 130 | 130 | return ['text', null, '']; |
@@ -98,7 +98,7 @@ |
||
| 98 | 98 | if ($doc = $property->getDocComment()) { |
| 99 | 99 | if (is_string($doc) && preg_match('/@var\s+(\w+)/i', $doc, $match)) { |
| 100 | 100 | $type = \strtolower($match[1]); |
| 101 | - if (\in_array($type, ['boolean', 'bool', 'integer', 'int' , 'float' , 'double', 'string'])) { |
|
| 101 | + if (\in_array($type, ['boolean', 'bool', 'integer', 'int', 'float', 'double', 'string'])) { |
|
| 102 | 102 | return ObjectMiddleware::RAW; |
| 103 | 103 | } |
| 104 | 104 | } |