While the map() method uses scalar types, the get(), post(), etc methods do not.
Unfortunately, this cannot be resolved without a new major release because adding scalar types to those methods would cause incompatible method signatures for 3rd parties implementing this interface.
Side note: If the required PHP version was >=7.2 this wouldn't be an issue due to parameter type widening.
While the
map()
method uses scalar types, theget()
,post()
, etc methods do not.Unfortunately, this cannot be resolved without a new major release because adding scalar types to those methods would cause incompatible method signatures for 3rd parties implementing this interface.
Side note: If the required PHP version was
>=7.2
this wouldn't be an issue due to parameter type widening.