@@ -144,6 +144,7 @@ final class PhpdocLineSpanFixer extends AbstractFixer implements WhitespacesAwar
T_STATIC,
T_STRING,
T_NS_SEPARATOR,
+ CT::T_ARRAY_TYPEHINT,
CT::T_NULLABLE_TYPE,
]));
@@ -506,6 +506,27 @@ class Foo
*
*/
private ?string $foo;
+}',
+ [
+ 'property' => 'single',
+ ],
+ 'It can handle properties with array type declaration' => [
+ '<?php
+
+class Foo
+{
+ /** @var string[] */
+ private array $foo;
+ /**
+ * @var string[]
+ */
}',
[
'property' => 'single',