Bug #76198 [Opn->Csd]: Wording: "iterable" is not a scalar type

From: Date: Sat, 14 Apr 2018 11:09:35 +0000
Subject: Bug #76198 [Opn->Csd]: Wording: "iterable" is not a scalar type
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-214741@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=76198&edit=1 ID: 76198 Updated by: nikic@php.net Reported by: levim@php.net Summary: Wording: "iterable" is not a scalar type -Status: Open +Status: Closed Type: Bug Package: *General Issues PHP Version: 7.2.4 Block user comment: N Private report: N New Comment: Automatic comment on behalf of levim Revision: http://git.php.net/?p=php-src.git;a=commit;h=0c80cb164fc4378c7b1c9768cae63946c693e734 Log: Fix bug #76198 Previous Comments: ------------------------------------------------------------------------ [2018-04-08 18:11:45] levim@php.net 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 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=76198&edit=1

« previous php.bugs (#214741) next »