Closed sunspikes closed 5 years ago
Fixes phpstan errors when type a type constant is used in constructor, for example: new ToNull(ToNull::TYPE_STRING) results in
phpstan
new ToNull(ToNull::TYPE_STRING)
Parameter #1 $typeOrOptions of class Zend\Filter\ToNull constructor expects array|string|Traversable|null, int given
Thanks, @sunspikes!
Fixes
phpstan
errors when type a type constant is used in constructor, for example:new ToNull(ToNull::TYPE_STRING)
results inParameter #1 $typeOrOptions of class Zend\Filter\ToNull constructor expects array|string|Traversable|null, int given