Doc #79521 [NEW]: Fix `__set_state` documentation

From: Date: Sun, 26 Apr 2020 02:59:47 +0000
Subject: Doc #79521 [NEW]: Fix `__set_state` documentation
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-17516@lists.php.net to get a copy of this message
From: carusogabriel Operating system: PHP version: Irrelevant Package: Documentation problem Bug Type: Documentation Problem Bug description:Fix __set_state documentation Description: ------------ The documentation (https://php.net/manual/en/language.oop5.magic.php#object.set-state) of the magic method __set_state says: - it MUST take an array argument - it MUST return an object Ok, two problems: - it CAN take an argument, is not mandatory, e.g.: https://3v4l.org/gTlmV - it CAN return, is not mandatory: https://3v4l.org/SG8Hs Should we fix its documentation? Something like -static __set_state ( array $properties ) : object +static __set_state ( [array $properties] ) : mixed -- Edit bug report at https://bugs.php.net/bug.php?id=79521&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=79521&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=79521&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=79521&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=79521&r=needscript Try newer version: https://bugs.php.net/fix.php?id=79521&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=79521&r=support Expected behavior: https://bugs.php.net/fix.php?id=79521&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=79521&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=79521&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=79521&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=79521&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=79521&r=dst IIS Stability: https://bugs.php.net/fix.php?id=79521&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=79521&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=79521&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=79521&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=79521&r=mysqlcfg

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