Checking params inside ( ... ) doesn't work at the moment, so you can disallow all declare()s but can't re-allow e.g. declare(strict-types = 1).
If you try to disallow else if with the space, an exception will be thrown, because else if is parsed as else followed by if, so disallowing else if with the space wouldn't have the desired effect and the result would be unexpected.
Checking params inside ( ... ) doesn't work at the moment, so you can disallow all
declare()
s but can't re-allow e.g.declare(strict-types = 1)
.If you try to disallow
else if
with the space, an exception will be thrown, becauseelse if
is parsed aselse
followed byif
, so disallowingelse if
with the space wouldn't have the desired effect and the result would be unexpected.Close #68