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

From: Date: Sun, 23 Sep 2018 17:06:36 +0000
Subject: Doc #76924 [Opn->Ver]: CallbackFilterIterator::accept returns a boolean not a string
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-16014@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: Open +Status: Verified Type: Documentation Problem Package: Documentation problem Operating System: N/A PHP Version: Irrelevant Block user comment: N Private report: N New Comment: Indeed: https://github.com/php/php-src/blob/93f9ee72/ext/spl/spl_iterators.c#L1979-L2017 Previous Comments: ------------------------------------------------------------------------ [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 (#16014) next »