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.
 
 

23 lines
388 B

--TEST--
static calls
--FILE--
<?php
namespace Foo {
class Stream
{
public function pipe(self $stream): void
{
var_dump(get_class($stream));
}
}
}
namespace {
function main() {
$stream1 = new Foo\Stream();
$stream2 = new Foo\Stream();
$stream1->pipe($stream2);
}
}
?>
--EXPECT--
string(10) "Foo\Stream"