Skip to content

Conversation

@kkmuffme
Copy link
Contributor

@kkmuffme kkmuffme commented Jan 4, 2026

Fix 4 false positives for PropertyNotSetInConstructor

@kkmuffme kkmuffme force-pushed the false-positive-property-not-set-in-constructor-for-stubbed-and-overriden branch from 2105bce to 3a760a7 Compare January 7, 2026 00:36
…bbed properties/classes

- Improve and deduplicate logic of previous PR vimeo#10817
- Fix vimeo#11261
- Fix vimeo#2319 - for stubbed classes, which generally do not contain any statements, assume that when calling parent::__construct(); all inherited, non-initialized properties are intialized. This assumption makes sense, since otherwise it would mean the stubbed class itself has PropertyNotSetInConstructor errors
…s to stubbed property types not reporting an error

The actual error for vimeo#5194 was fixed in the meantime somewhere correctly already
Fix failing tests from github.com/vimeo/pull/11569
@kkmuffme kkmuffme force-pushed the false-positive-property-not-set-in-constructor-for-stubbed-and-overriden branch from 7439e1f to 31fc5d0 Compare January 7, 2026 02:12
@kkmuffme kkmuffme marked this pull request as ready for review January 7, 2026 02:13
@kkmuffme
Copy link
Contributor Author

kkmuffme commented Jan 7, 2026

Failing tests are unrelated and added in #11569 (I fixed the "MissingConstructor" one, but the psalm/shepherd one I didn't know what you prefer there - ignore or fix it, but its out of scope)

Also the failing Windows test (chunk 8) seems to be Windows specific - on Unix (as you can see) works fine and I don't have an option to reproduce it on Windows.

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

Labels

None yet

Projects

None yet

1 participant