Doc #77702 [Opn->Ver]: Ds\Set::first() incorrect return type

From: Date: Wed, 06 Mar 2019 12:33:16 +0000
Subject: Doc #77702 [Opn->Ver]: Ds\Set::first() incorrect return type
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-16450@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=77702&edit=1 ID: 77702 Updated by: cmb@php.net Reported by: demyan112rv at gmail dot com Summary: Ds\Set::first() incorrect return type -Status: Open +Status: Verified Type: Documentation Problem Package: Documentation problem Operating System: Any PHP Version: Irrelevant Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [2019-03-06 08:02:22] demyan112rv at gmail dot com Description: ------------ --- From manual page: https://php.net/ds-set.first --- Return type void for this method is incorrect. Test script: --------------- $set = new Ds\Set(); $set->add('foo', 'bar'); var_dump($set->first()); ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=77702&edit=1

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