allowCount to allow max N method/function calls
This release adds support for This feature got reverted in 1.11.0.allowCount
config key for disallowedMethodCalls
to allow methods/functions to be called max N times. This might be useful when you have some classes you don't want to be reused for some reason (like some generated classes for example). (#87, thanks @ruudk!)
Internally, the code now uses int
& bool
instead of integer
& boolean
and uses Use PHP Parser 4.12 (#84) but not newer (newer will be supported once PHPStan 1.0 is out, real soon now)