Skip to content

allowCount to allow max N method/function calls

Compare
Choose a tag to compare
@spaze spaze released this 22 Oct 20:58

This release adds support for 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!) This feature got reverted in 1.11.0.

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)