Skip to content

Commit 0d8da6e

Browse files
Added support for the new iterable type
1 parent f9f9717 commit 0d8da6e

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

Symfony/CS/Fixer/Symfony/PhpdocTypesFixer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ final class PhpdocTypesFixer extends AbstractPhpdocTypesFixer
3434
'float',
3535
'int',
3636
'integer',
37+
'iterable',
3738
'mixed',
3839
'null',
3940
'object',

Symfony/CS/Tests/Fixer/Symfony/PhpdocTypesFixerTest.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,30 @@ public function testMixedAndVoid()
8787
* @return Void
8888
*/
8989

90+
EOF;
91+
$this->makeTest($expected, $input);
92+
}
93+
94+
public function testIterableFix()
95+
{
96+
$expected = <<<'EOF'
97+
<?php
98+
/**
99+
* @param iterable $foo
100+
*
101+
* @return Itter
102+
*/
103+
104+
EOF;
105+
106+
$input = <<<'EOF'
107+
<?php
108+
/**
109+
* @param Iterable $foo
110+
*
111+
* @return Itter
112+
*/
113+
90114
EOF;
91115
$this->makeTest($expected, $input);
92116
}

0 commit comments

Comments
 (0)