Exemplo n.º 1
0
<?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]);
Exemplo n.º 2
0
 public static function test5()
 {
     parent::test2();
     // Gives Bar, because its using the late static binding context
 }