Doc #76924 [Ver->Csd]: CallbackFilterIterator::accept returns a boolean not a string

From: Date: Sun, 23 Sep 2018 17:10:55 +0000
Subject: Doc #76924 [Ver->Csd]: CallbackFilterIterator::accept returns a boolean not a string
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-16015@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=76924&edit=1 ID: 76924 Updated by: carusogabriel@php.net Reported by: arnold at jasny dot net Summary: CallbackFilterIterator::accept returns a boolean not a string -Status: Verified +Status: Closed Type: Documentation Problem -Package: Documentation problem +Package: SPL related Operating System: N/A PHP Version: Irrelevant -Assigned To: +Assigned To: carusogabriel Block user comment: N Private report: N New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2018-09-23 17:09:17] 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:06:36] carusogabriel@php.net Indeed: https://github.com/php/php-src/blob/93f9ee72/ext/spl/spl_iterators.c#L1979-L2017 ------------------------------------------------------------------------ [2018-09-23 16:54:28] 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 ) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=76924&edit=1

« previous php.doc.bugs (#16015) next »