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.
 
 

16 lines
364 B

--TEST--
Symfony pattern: cache ReflectionMethod::invoke first-class callable
--FILE--
<?php
function main(): void
{
$invoke = null;
$invoke ??= (new ReflectionMethod(ReflectionMethod::class, 'getName'))->invoke(...);
$method = new ReflectionMethod(DateTimeZone::class, 'getName');
var_dump($invoke($method));
}
?>
--EXPECT--
string(7) "getName"