Skip to content
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

TASK: Level up to phpstan 2 (Flow 9 adjustments) #3217

Merged
merged 5 commits into from
Jan 24, 2024
Merged

Conversation

mhsdesign
Copy link
Member

@mhsdesign mhsdesign commented Nov 4, 2023

The upgrade to phpstan level two was introduced via #3264, this holds the flow 9 specific adjustments.

Related (phpstan level 1) #3216

Upgrade instructions

Review instructions

Checklist

  • Code follows the PSR-2 coding style
  • Tests have been created, run and adjusted as needed
  • The PR is created against the lowest maintained branch
  • Reviewer - PR Title is brief but complete and starts with FEATURE|TASK|BUGFIX
  • Reviewer - The first section explains the change briefly for change-logs
  • Reviewer - Breaking Changes are marked wit !!! and have upgrade-instructions

Copy link
Member

@mficzel mficzel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally like this very much, left some questions

Copy link
Member Author

@mhsdesign mhsdesign left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.

@mhsdesign mhsdesign force-pushed the task/phpStanLevel2 branch 2 times, most recently from ee9dfbc to 1d29723 Compare November 7, 2023 21:11
Base automatically changed from task/addPhpStan to 9.0 November 8, 2023 10:39
@mhsdesign mhsdesign marked this pull request as ready for review November 8, 2023 10:40
@mhsdesign mhsdesign force-pushed the task/phpStanLevel2 branch 4 times, most recently from 9d12dc0 to 490eb2d Compare January 16, 2024 19:24
@mhsdesign
Copy link
Member Author

This is now ready to be merged. The tests are now completely green with phpstan level 2.

NOTE FOR REVIEWERS
Changes which do not seem self explanatory have been extracted into separate commits with in depth information.
Adding uncritical php type doc comments has been squashed into one commit.

@mhsdesign
Copy link
Member Author

Thänks @kitsunet ❤️

mhsdesign added a commit to mhsdesign/flow-development-collection that referenced this pull request Jan 17, 2024
mhsdesign added a commit to mhsdesign/flow-development-collection that referenced this pull request Jan 17, 2024
@mhsdesign
Copy link
Member Author

Fyi i also created a backport for Flow 8.3 #3264

Copy link
Member

@bwaidelich bwaidelich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 by reading

mhsdesign added a commit to mhsdesign/flow-development-collection that referenced this pull request Jan 17, 2024
mhsdesign added a commit to mhsdesign/flow-development-collection that referenced this pull request Jan 17, 2024
mhsdesign added a commit to mhsdesign/flow-development-collection that referenced this pull request Jan 17, 2024
@mhsdesign
Copy link
Member Author

i think it would make sense to merge the backport first to not mess to much with the history: #3264

The backport basically contains all changes of TASK: **Pling pling** level up to phpstan 2 as cherry-pick plus an adjustment commit TASK: Backport phpstan level 2 to Flow 8.3 and ignore to be fixed things to make things work on 8.3

@mhsdesign mhsdesign marked this pull request as draft January 19, 2024 11:48
@mhsdesign mhsdesign force-pushed the task/phpStanLevel2 branch 2 times, most recently from 22cc909 to 100c5f3 Compare January 20, 2024 19:19
@mhsdesign mhsdesign marked this pull request as ready for review January 20, 2024 19:19
…:process` early return

Previously it was assumed that `$node` is always a `TextNode`, as the following code implies, by calling for example `getText`.
This might fail, as this is a generic processor.
And for full correctness we will just early return instead of causing an error.
…ation

This must be cleaned up at some point:
See #3272
@mhsdesign mhsdesign changed the title TASK: Level up to phpstan 2 TASK: Level up to phpstan 2 (Neos 9 adjustments) Jan 24, 2024
@mhsdesign mhsdesign changed the title TASK: Level up to phpstan 2 (Neos 9 adjustments) TASK: Level up to phpstan 2 (Flow 9 adjustments) Jan 24, 2024
@mhsdesign mhsdesign merged commit 3ca08aa into 9.0 Jan 24, 2024
10 checks passed
@mhsdesign mhsdesign deleted the task/phpStanLevel2 branch January 24, 2024 21:54
@mhsdesign mhsdesign restored the task/phpStanLevel2 branch January 25, 2024 08:23
@mhsdesign mhsdesign deleted the task/phpStanLevel2 branch January 25, 2024 08:23
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.

None yet

4 participants