From 84b2eca1809fb0b2a7315cefb8810ca96fbeebb6 Mon Sep 17 00:00:00 2001 From: Tiffany Taylor Date: Thu, 12 Mar 2020 15:40:27 +0000 Subject: [PATCH] Remove "nom noms" from eat method in Dog class (thanks salathe) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349392 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/oop5/variance.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/language/oop5/variance.xml b/language/oop5/variance.xml index d2ab69407c..9890ef9332 100644 --- a/language/oop5/variance.xml +++ b/language/oop5/variance.xml @@ -161,7 +161,7 @@ abstract class Animal class Dog extends Animal { public function eat(Food $food) { - echo $this->name . " nom noms " . get_class($food); + echo $this->name . " eats " . get_class($food); } } ]]>