示例#1
0
文件: method.php 项目: badlamer/hhvm
<?php

class Foo
{
    public function test(...$args)
    {
        var_dump($args);
    }
    public static function test2(...$args)
    {
        var_dump($args);
    }
}
$foo = new Foo();
Foo::test2(1, 2, ...[3, 4], ...[], ...[5]);
 public static function test5()
 {
     parent::test2();
     // Gives Bar, because its using the late static binding context
 }