-
-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FEATURE: Level up to PHPStan 8 #3786
Conversation
35d5f41
to
7169667
Compare
// todo ensure that https://github.com/neos/neos-ui/pull/3734 doesnt need to be refixed in Neos 9.0 | ||
$redirectNode = $documentNode; | ||
while (true) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this code is probably broken but i didnt touch it here ... this deserves a follwup -> #3815
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks so much for sustaining the type-safety efforts, @mhsdesign! 👍 👍 👍
This gives us proper type errors when doing things on possible null values which is super important.
Following (non behaviour changing) adjustments were made:
ChangeInterface::getSubject
not nullable (as we always callsetSubject
, and simplify code not having to deal with the possible nullability here (which was also not done previously correctly for all cases)Change
without context node. Its useless)final
for sanity$view->setControllerContext
(for out of band rendering) into amethod_exists
as the method is with FLow9 not part of the interface anymoreUpdateWorkspaceInfo
non nullable as its set always in the constructorUpdateNodeInfo
non nullable as its set always via setter