com php-src: Test ReflectionType support of iterable: ext/reflection/tests/ReflectionType_possible_types.phpt

[email protected] (Andrea Faulds)
Newsgroups php.cvs
Message-ID <[email protected]>
Commit:    753ae9b7db364fe8c087faf08cc564e54f4fe574
Author:    Andrea Faulds <[email protected]>         Sat, 29 Apr 2017 14:37:35 +0100
Parents:   9cec5e2c1d1c333dd9eff8d3879816c45f3db5ef
Branches:  master

Link:       http://git.php.net/?p=php-src.git;a=commitdiff;h=753ae9b7db364fe8c087faf08cc564e54f4fe574

Log:
Test ReflectionType support of iterable

Changed paths:
  M  ext/reflection/tests/ReflectionType_possible_types.phpt


Diff:
diff --git a/ext/reflection/tests/ReflectionType_possible_types.phpt b/ext/reflection/tests/ReflectionType_possible_types.phpt
index 5530224..3b486a6 100644
--- a/ext/reflection/tests/ReflectionType_possible_types.phpt
+++ b/ext/reflection/tests/ReflectionType_possible_types.phpt
@@ -11,6 +11,7 @@ $functions = [
     function(): bool {},
     function(): array {},
     function(): callable {},
+    function(): iterable {},
     function(): StdClass {}
 ];
 
@@ -28,4 +29,5 @@ string(6) "string"
 string(4) "bool"
 string(5) "array"
 string(8) "callable"
+string(8) "iterable"
 string(8) "StdClass"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.