Fix #73623: Example mentions deprecated PHP 4 OO naming style for constructors

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@341232 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Christoph Michael Becker 2016-11-30 11:42:28 +00:00
parent 729d7e8e04
commit 62d53f70bd

View file

@ -23,7 +23,7 @@ class Vegetable {
var $edible;
var $color;
function Vegetable($edible, $color="green")
function __construct($edible, $color="green")
{
$this->edible = $edible;
$this->color = $color;
@ -46,9 +46,9 @@ class Spinach extends Vegetable {
var $cooked = false;
function Spinach()
function __construct()
{
$this->Vegetable(true, "green");
parent::__construct(true, "green");
}
function cook_it()