From fd997f01ab64e4f03e5383e91faad816e047c08c Mon Sep 17 00:00:00 2001 From: Andrey Gromov <rjhdby@php.net> Date: Mon, 30 Jan 2017 09:55:32 +0000 Subject: [PATCH] Change constructor from PHP4 to modern style in example. By naitsirch. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@341814 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/classobj/functions/get-class-vars.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/classobj/functions/get-class-vars.xml b/reference/classobj/functions/get-class-vars.xml index d46462bf1f..8c93204dd7 100644 --- a/reference/classobj/functions/get-class-vars.xml +++ b/reference/classobj/functions/get-class-vars.xml @@ -97,7 +97,7 @@ class myclass { private $var4; // constructor - function myclass() { + function __construct() { // change some properties $this->var1 = "foo"; $this->var2 = "bar";