|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2018-04-14 11:09 UTC] nikic@php.net
[2018-04-14 11:09 UTC] nikic@php.net
-Status: Open
+Status: Closed
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 06:00:02 2025 UTC |
Description: ------------ The wording suggests that `iterable` is a scalar type when it definitely is not as neither `array` nor `Traversable` are scalar types. Test script: --------------- <?php function f(): \iterable {} ?> Expected result: ---------------- Fatal error: Type declaration 'iterable' must be unqualified in %s on line %d Actual result: -------------- Fatal error: Scalar type declaration 'iterable' must be unqualified in %s on line %d