0
0
mirror of https://github.com/phpv8/v8js.git synced 2024-11-08 09:08:41 +00:00

Rename constructor functions to __construct

This commit is contained in:
Stefan Siegl 2015-09-28 22:56:22 +02:00
parent 4002c3c1ae
commit cbbce91ffd
2 changed files with 2 additions and 2 deletions

View File

@ -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());
}

View File

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