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:    9891b9ede225b58c358372c2b7b8603c2c91ac12
Author:    Andrea Faulds <[email protected]>         Sat, 29 Apr 2017 14:37:35 +0100
Parents:   c436fe24265573431f97a3dfde8dd4617225ac90
Branches:  PHP-7.1

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

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.