@@ -34,6 +34,7 @@ final class PhpdocTypesFixer extends AbstractPhpdocTypesFixer
'float',
'int',
'integer',
+ 'iterable',
'mixed',
'null',
'object',
@@ -89,6 +89,30 @@ EOF;
* @return Void
*/
+EOF;
+ $this->doTest($expected, $input);
+ }
+
+ public function testIterableFix()
+ {
+ $expected = <<<'EOF'
+<?php
+ /**
+ * @param iterable $foo
+ *
+ * @return Itter
+ */
+ $input = <<<'EOF'
+ * @param Iterable $foo
EOF;
$this->doTest($expected, $input);
}
@@ -0,0 +1,21 @@
+--TEST--
+PHP 7.1 test.
+--CONFIG--
+{
+ "@Symfony": true
+}
+--SETTINGS--
+checkPriority=false
+--REQUIREMENTS--
+php=7.1
+--EXPECT--
+function iterable_foo(iterable $foo)
+--INPUT--
+function iterable_foo(iterable$foo) {}