TypePHP 编译器 https://swoole.com/aot/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

39 lines
564 B

--TEST--
class static
--FILE--
<?php
namespace Test {
class Worker1
{
static function hello()
{
return "hello";
}
static function foo()
{
var_dump(self::hello());
var_dump(static::hello());
}
}
class Worker2 extends Worker1
{
static function hello()
{
return "world";
}
}
}
namespace {
use Test\Worker2;
function main()
{
Worker2::foo();
}
}
?>
--EXPECT--
string(5) "hello"
string(5) "world"