From b0617d62c64301188b48197a51ae67aa399b650f Mon Sep 17 00:00:00 2001 From: Marco Pivetta Date: Fri, 16 Sep 2016 10:49:21 +0100 Subject: [PATCH] Tests around `iterable` to be skipped pre-PHP-7.1 --- test/Generator/ParameterGeneratorTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/Generator/ParameterGeneratorTest.php b/test/Generator/ParameterGeneratorTest.php index 6fec7f04..ce27900a 100644 --- a/test/Generator/ParameterGeneratorTest.php +++ b/test/Generator/ParameterGeneratorTest.php @@ -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])); } );