Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit b0617d6

Browse files
committed
Tests around iterable to be skipped pre-PHP-7.1
1 parent 1efb23f commit b0617d6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/Generator/ParameterGeneratorTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,8 @@ public function reflectionHintsProvider()
459459
$compatibleParameters = array_filter(
460460
$parameters,
461461
function (array $parameter) {
462-
return PHP_VERSION_ID >= 70100 || false === strpos($parameter[3], '?');
462+
return PHP_VERSION_ID >= 70100
463+
|| (false === strpos($parameter[3], '?') && 'iterable' !== strtolower($parameter[3]));
463464
}
464465
);
465466

0 commit comments

Comments
 (0)