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

Commit

Permalink
Tests around iterable to be skipped pre-PHP-7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocramius committed Sep 16, 2016
1 parent 1efb23f commit b0617d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/Generator/ParameterGeneratorTest.php
Expand Up @@ -459,7 +459,8 @@ public function reflectionHintsProvider()
$compatibleParameters = array_filter(
$parameters,
function (array $parameter) {
return PHP_VERSION_ID >= 70100 || false === strpos($parameter[3], '?');
return PHP_VERSION_ID >= 70100
|| (false === strpos($parameter[3], '?') && 'iterable' !== strtolower($parameter[3]));
}
);

Expand Down

0 comments on commit b0617d6

Please sign in to comment.