phpstan-exception-rules
phpstan-exception-rules copied to clipboard
Bug: `MethodWhitelist` does not accept constructors
It is needed for PHP build-in DateTime/DateTimeImmutable/DateInterval classes, that throw exceptions for invalid inputs. Furthermore, this extension will mark them even if the input is hardcoded.
Yeah, this feature is missing because phpstan-dynamic-extensions didn't support constructors then. And I think the situation is still the same, isn't it?