Doc #80727 [NEW]: Mistake in Spanish documentation example code

From: Date: Wed, 10 Feb 2021 13:11:17 +0000
Subject: Doc #80727 [NEW]: Mistake in Spanish documentation example code
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-18516@lists.php.net to get a copy of this message
From: pablo dot lorenzo at gmail dot com Operating system: irrelevant PHP version: 7.4.15 Package: Documentation problem Bug Type: Documentation Problem Bug description:Mistake in Spanish documentation example code Description: ------------ --- From manual page: https://php.net/language.oop5.variance --- This is just for the Spanish documentation page. The section "Contravarianza" contains an example that has a small mistake, but it is a mistake that changes completely the interpretation of the example and also would not work as expected. This method: public function eat(Food $food) { echo $this->name . " eats " . get_class($food); } Should be: public function eat(AnimalFood $food) { echo $this->name . " eats " . get_class($food); } -- Edit bug report at https://bugs.php.net/bug.php?id=80727&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=80727&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=80727&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=80727&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=80727&r=needscript Try newer version: https://bugs.php.net/fix.php?id=80727&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=80727&r=support Expected behavior: https://bugs.php.net/fix.php?id=80727&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=80727&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=80727&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=80727&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=80727&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=80727&r=dst IIS Stability: https://bugs.php.net/fix.php?id=80727&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=80727&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=80727&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=80727&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=80727&r=mysqlcfg

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