Bläddra i källkod

Rename constructor functions to __construct

Stefan Siegl 9 år sedan
förälder
incheckning
cbbce91ffd
2 ändrade filer med 2 tillägg och 2 borttagningar
  1. 1 1
      tests/get_constructor.phpt
  2. 1 1
      tests/magic_func.phpt

+ 1 - 1
tests/get_constructor.phpt

@@ -6,7 +6,7 @@ Test V8::executeString() : Get constructor method
 <?php
 
 class Foo {
-	function Foo() {
+	function __construct() {
 		echo "called constructor: ";
 		var_dump(func_get_args());
 	}

+ 1 - 1
tests/magic_func.phpt

@@ -9,7 +9,7 @@ class Foo {
 	var $bar = 'foobar';
 	var $nullprop = null;
 
-	function Foo() {
+	function __construct() {
 		echo "called constructor: ";
 		var_dump(func_get_args());
 	}