summaryrefslogtreecommitdiff
path: root/ext/reflection/tests/ReflectionClass_isArray.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/reflection/tests/ReflectionClass_isArray.phpt')
-rw-r--r--ext/reflection/tests/ReflectionClass_isArray.phpt17
1 files changed, 10 insertions, 7 deletions
diff --git a/ext/reflection/tests/ReflectionClass_isArray.phpt b/ext/reflection/tests/ReflectionClass_isArray.phpt
index 3eec0dac54..67df4e98e7 100644
--- a/ext/reflection/tests/ReflectionClass_isArray.phpt
+++ b/ext/reflection/tests/ReflectionClass_isArray.phpt
@@ -4,7 +4,8 @@ public bool ReflectionParameter::isArray ( void );
marcosptf - <marcosptf@yahoo.com.br> - @phpsp - sao paulo - br
--FILE--
<?php
-function testReflectionIsArray($a = null, $b = 0, array $c, $d=true, array $e, $f=1.5, $g="", array $h, $i="#F989898") {}
+
+function testReflectionIsArray(array $a, ?array $b, iterable $c, array|string $d) {}
$reflection = new ReflectionFunction('testReflectionIsArray');
@@ -12,13 +13,15 @@ foreach ($reflection->getParameters() as $parameter) {
var_dump($parameter->isArray());
}
?>
---EXPECT--
-bool(false)
-bool(false)
+--EXPECTF--
+Deprecated: Method ReflectionParameter::isArray() is deprecated in %s on line %d
bool(true)
-bool(false)
+
+Deprecated: Method ReflectionParameter::isArray() is deprecated in %s on line %d
bool(true)
+
+Deprecated: Method ReflectionParameter::isArray() is deprecated in %s on line %d
bool(false)
-bool(false)
-bool(true)
+
+Deprecated: Method ReflectionParameter::isArray() is deprecated in %s on line %d
bool(false)