Closed mcop1 closed 2 months ago
Part of https://github.com/pimcore/data-hub/issues/679 , see https://github.com/pimcore/data-hub/pull/874
Despite being typed with mixed, Arraycan´t be passed as default value for request->get, needs to be a scalar value. The type gets checked in the function itself using is_sclar and therefore the type mismatch doesnt get detected by phpstan.
mixed
Array
request->get
is_sclar
Issues 0 New issues 0 Accepted issues
Measures 0 Security Hotspots 0.0% Coverage on New Code 0.0% Duplication on New Code
See analysis details on SonarCloud
Part of https://github.com/pimcore/data-hub/issues/679 , see https://github.com/pimcore/data-hub/pull/874
Despite being typed with
mixed
,Array
can´t be passed as default value forrequest->get
, needs to be a scalar value. The type gets checked in the function itself usingis_sclar
and therefore the type mismatch doesnt get detected by phpstan.