mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
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:
parent
729d7e8e04
commit
62d53f70bd
1 changed files with 3 additions and 3 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue