php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #76198 Wording: "iterable" is not a scalar type
Submitted: 2018-04-08 18:11 UTC Modified: -
From: levim@php.net Assigned:
Status: Closed Package: *General Issues
PHP Version: 7.2.4 OS:
Private report: No CVE-ID: None
 [2018-04-08 18:11 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-04-14 11:09 UTC] nikic@php.net
Automatic comment on behalf of levim
Revision: http://git.php.net/?p=php-src.git;a=commit;h=0c80cb164fc4378c7b1c9768cae63946c693e734
Log: Fix bug #76198
 [2018-04-14 11:09 UTC] nikic@php.net
-Status: Open +Status: Closed
 
PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Thu Dec 13 23:01:24 2018 UTC