zendframework / zend-filter

Filter component from Zend Framework
BSD 3-Clause "New" or "Revised" License
68 stars 35 forks source link

Add int to constructor param type hint #86

Closed sunspikes closed 5 years ago

sunspikes commented 5 years ago

Fixes phpstan errors when type a type constant is used in constructor, for example: new ToNull(ToNull::TYPE_STRING) results in

Parameter #1 $typeOrOptions of class Zend\Filter\ToNull constructor expects array|string|Traversable|null, int given

michalbundyra commented 5 years ago

Thanks, @sunspikes!