Skip to content

Commit 15678f7

Browse files
authored
Merge pull request #17 from kocsismate/master
Add iterable to the list of ignored types
2 parents 7d0de60 + c797db7 commit 15678f7

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

src/PhpDocReader/PhpDocReader.php

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ class PhpDocReader
3434
'callable',
3535
'resource',
3636
'mixed',
37+
'iterable',
3738
);
3839

3940
/**

tests/FixturesPrimitiveTypes/Class1.php

+8-1
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ class Class1
6464
*/
6565
public $mixed;
6666

67+
/**
68+
* @var iterable
69+
*/
70+
public $iterable;
71+
6772
/**
6873
* @param bool $bool
6974
* @param boolean $boolean
@@ -77,6 +82,7 @@ class Class1
7782
* @param callable $callable
7883
* @param resource $resource
7984
* @param mixed $mixed
85+
* @param iterable $iterable
8086
*/
8187
public function foo(
8288
$bool,
@@ -90,7 +96,8 @@ public function foo(
9096
$object,
9197
$callable,
9298
$resource,
93-
$mixed
99+
$mixed,
100+
$iterable
94101
) {
95102
}
96103
}

tests/PrimitiveTypesTest.php

+1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ public function typeProvider()
4747
'callable' => array('callable'),
4848
'resource' => array('resource'),
4949
'mixed' => array('mixed'),
50+
'iterable' => array('iterable'),
5051
);
5152
}
5253
}

0 commit comments

Comments
 (0)