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.
18 lines
318 B
18 lines
318 B
--TEST--
|
|
Named Arguments - PHP 8+ function call syntax
|
|
--FILE--
|
|
<?php
|
|
class Foo {
|
|
public function __construct(string $a, int $b, float $c) {
|
|
var_dump($a, $b, $c);
|
|
}
|
|
}
|
|
|
|
function main() {
|
|
$o = new Foo(b: 2026, c: 3.1415, a: "[content]");
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
string(9) "[content]"
|
|
int(2026)
|
|
float(3.1415)
|
|
|