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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: levim@php.net
New email:
PHP Version: OS:

 

 [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-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 09:01:27 2024 UTC