Merge pull request #4 from liquid207/fix-annotation-error-about-typed-array

Fix annotation error about typed array like array<mixed> or array<int…
This commit is contained in:
Barry vd. Heuvel
2020-01-08 10:55:58 +01:00
committed by GitHub
@@ -151,6 +151,10 @@ class Collection extends \ArrayObject
return '';
}
if (substr($type, 0, 6) === 'array<' && substr($type, -1) === '>') {
return $type;
}
if ($this->isTypeAnArray($type)) {
return $this->expand(substr($type, 0, -2)) . self::OPERATOR_ARRAY;
}