Skip to content

Conversation

@derrabus
Copy link
Member

@derrabus derrabus commented Jan 2, 2026

Q A
Type improvement
Fixed issues #7253 (comment)

Summary

This PR improves the static analysis of the BaseDateTypeTestCase class by making the analyzer aware of the actual Type subclass that we test against.

@morozov
Copy link
Member

morozov commented Jan 2, 2026

This PR improves the static analysis of the BaseDateTypeTestCase class by making the analyzer aware of the actual Type subclass that we test against.

The changes themselves are fine, but I don't understand where the improvement is. The changes in the types do not eliminate any false positive errors as one might expect.

@greg0ire
Copy link
Member

greg0ire commented Jan 2, 2026

I guess that's because we don't use phpstan level 9 yet?

@morozov
Copy link
Member

morozov commented Jan 2, 2026

I guess that's because we don't use phpstan level 9 yet?

In this case, I'd expect this change to be part of a PR that bumps PHPStan to level 9. Otherwise, this improvement can be accidentally broken unnoticed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants