Closed mtorromeo closed 3 years ago
hello @mtorromeo,
when do you plan to merge this PR because we have problems with Laminas Server?
@goksiii I'm not a maintainer/developer of the project and I can't merge anything. I want this merged as much as you do.
I'll try and review today, @goksiii.
Description
Given the loose typehints in
ReflectionClass
andReflectionMethod
it can happen that they receivenull
as the$argv
parameter, leading to an error.In practice this happened to me when using laminas-json-server which contains the following code with
$argv
defaulting tonull
:The code from
Laminas\Json\Server
contains its own bug given thatif (2 < func_num_args()) {
should more likely beif (3 < func_num_args()) {
, but still it seems right to at least protect from such a situation inlaminas-server
as well.