phpstan/phpstan-webmozart-assert

Call for help: Modernize AssertTypeSpecifyingExtensionTest

ondrejmirtes opened this issue · 1 comments

What I did in phpstan-beberlei-assert in this commit should also be done here in phpstan-webmozart-assert. Instead of hacking together a really burdensome way of testing type inference, the new modern way takes advantage of TypeInferenceTest that's in current dev-master of phpstan/phpstan.

I also wrote a short documentation on this: https://phpstan.org/developing-extensions/testing#type-inference

If anyone is feeling up to this, please comment on this issue so that there aren't multiple people doing the same thing :) Thanks!

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.