phpstan-exception-rules icon indicating copy to clipboard operation
phpstan-exception-rules copied to clipboard

Bug: `MethodWhitelist` does not accept constructors

Open patrickkusebauch opened this issue 5 years ago • 1 comments

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.

patrickkusebauch avatar Jan 17 '21 01:01 patrickkusebauch

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?

pepakriz avatar Jan 19 '21 09:01 pepakriz