Skip to content

Commit

Permalink
Added support for the new iterable type
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell committed Sep 23, 2016
1 parent f9f9717 commit 0d8da6e
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions Symfony/CS/Fixer/Symfony/PhpdocTypesFixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ final class PhpdocTypesFixer extends AbstractPhpdocTypesFixer
'float',
'int',
'integer',
'iterable',
'mixed',
'null',
'object',
Expand Down
24 changes: 24 additions & 0 deletions Symfony/CS/Tests/Fixer/Symfony/PhpdocTypesFixerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,30 @@ public function testMixedAndVoid()
* @return Void
*/
EOF;
$this->makeTest($expected, $input);
}

public function testIterableFix()
{
$expected = <<<'EOF'
<?php
/**
* @param iterable $foo
*
* @return Itter
*/
EOF;

$input = <<<'EOF'
<?php
/**
* @param Iterable $foo
*
* @return Itter
*/
EOF;
$this->makeTest($expected, $input);
}
Expand Down

0 comments on commit 0d8da6e

Please sign in to comment.