php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #76924 CallbackFilterIterator::accept returns a boolean not a string
Submitted: 2018-09-23 16:54 UTC Modified: 2018-09-23 17:10 UTC
From: arnold at jasny dot net Assigned: carusogabriel (profile)
Status: Closed Package: SPL related
PHP Version: Irrelevant OS: N/A
Private report: No CVE-ID: None
 [2018-09-23 16:54 UTC] arnold at jasny dot net
Description:
------------
On http://php.net/manual/en/callbackfilteriterator.accept.php, the documentation states

   public string CallbackFilterIterator::accept ( void )

   Returns TRUE to accept the current item, or FALSE otherwise.



Expected result:
----------------
The return value is a boolean, so it should be 

   public boolean CallbackFilterIterator::accept ( void )



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-09-23 17:06 UTC] carusogabriel@php.net
-Status: Open +Status: Verified
 [2018-09-23 17:09 UTC] carusogabriel@php.net
Automatic comment from SVN on behalf of carusogabriel
Revision: http://svn.php.net/viewvc/?view=revision&revision=345684
Log: Fix Bug #76924: CallbackFilterIterator::accept returns a boolean not a string
 [2018-09-23 17:10 UTC] carusogabriel@php.net
-Status: Verified +Status: Closed -Package: Documentation problem +Package: SPL related -Assigned To: +Assigned To: carusogabriel
 [2018-09-23 17:10 UTC] carusogabriel@php.net
Thanks for your bug report. We've fixed it, and as the documentation takes some days to update, we ask you to be patient to see the reflected changes.
 [2020-02-07 06:05 UTC] phpdocbot@php.net
Automatic comment on behalf of carusogabriel
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=b08ad2326529d7aee6e52f8e4ad1f2ef7c03ce24
Log: Fix Bug #76924: CallbackFilterIterator::accept returns a boolean not a string
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 14:01:34 2025 UTC