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.
27 lines
418 B
27 lines
418 B
--TEST--
|
|
static method
|
|
--FILE--
|
|
<?php
|
|
class Http {
|
|
public static function input($data) {
|
|
var_dump($data);
|
|
}
|
|
}
|
|
|
|
class Worker {
|
|
protected string $protocol = 'Http';
|
|
|
|
public function run() {
|
|
Http::input('http1.0');
|
|
$this->protocol::input('http1.1');
|
|
}
|
|
}
|
|
|
|
function main() {
|
|
$worker = new Worker();
|
|
$worker->run();
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
string(7) "http1.0"
|
|
string(7) "http1.1"
|
|
|