I would argue the above is *not* valid PSR-2.  It would be if there were no trailing $baz param.  Thus, the following would be OK:

    somefunction($foo, $bar, [
        // ...
    ]);

Adding a param after the array in this case means it is not on the same line as the other arguments, necessitating one-line-per-argument to be compliant:


    somefunction(
        $foo,
        $bar,
        [
            // ...
        ],
        $baz
    );