Skip to content

TASK: Raise PhpStan to level 8 - Part 2#3518

Merged
kitsunet merged 17 commits into
neos:9.2from
mficzel:phpstanLevel8-v3-part2
Jun 11, 2026
Merged

TASK: Raise PhpStan to level 8 - Part 2#3518
kitsunet merged 17 commits into
neos:9.2from
mficzel:phpstanLevel8-v3-part2

Conversation

@mficzel

@mficzel mficzel commented Oct 27, 2025

Copy link
Copy Markdown
Member

Raise PhpStan to level 8 for:

  • Neos.Flow/Classes/Reflection
  • Neos.Flow/Classes/ResourceManagement
  • Neos.Flow/Classes/Security
  • Neos.Flow/Classes/Session
  • Neos.Flow/Classes/SignalSlot
  • Neos.Flow/Classes/Utility
  • Neos.Flow/Validation

This is a follow up for: #3515

Upgrade instructions

Review instructions

Follow ups will adjust the other Flow Subcontexts. This is limited to be in a manageble size.
Also the target branch should offcourse be adjusted to 9.2 once that exists.

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 with !!! and have upgrade-instructions

@github-actions github-actions Bot added the 9.1 label Oct 27, 2025
@mficzel
mficzel changed the base branch from 9.1 to phpstanLevel8-v3 October 27, 2025 16:05
@mficzel
mficzel force-pushed the phpstanLevel8-v3-part2 branch 2 times, most recently from e4a16fd to d8b7541 Compare November 7, 2025 14:25
@mficzel
mficzel changed the base branch from phpstanLevel8-v3 to 9.1 November 7, 2025 14:28
@mficzel mficzel closed this Nov 7, 2025
@mficzel mficzel reopened this Nov 7, 2025
@mficzel
mficzel force-pushed the phpstanLevel8-v3-part2 branch 13 times, most recently from 569883c to f422f3c Compare November 7, 2025 18:25
@mficzel mficzel closed this Nov 7, 2025
@mficzel
mficzel force-pushed the phpstanLevel8-v3-part2 branch from f422f3c to 587ecda Compare November 7, 2025 18:41
@mficzel mficzel reopened this Nov 7, 2025
@mficzel
mficzel force-pushed the phpstanLevel8-v3-part2 branch 2 times, most recently from 886f119 to d9f48cc Compare November 30, 2025 11:52
@mficzel
mficzel force-pushed the phpstanLevel8-v3-part2 branch 2 times, most recently from 39aaae6 to 5ad6850 Compare January 9, 2026 15:52
@mficzel
mficzel force-pushed the phpstanLevel8-v3-part2 branch from 5ad6850 to 007bdd2 Compare January 9, 2026 16:18
@mficzel
mficzel marked this pull request as ready for review January 9, 2026 16:28
@kdambekalns kdambekalns mentioned this pull request Jun 4, 2026
6 tasks
@mficzel mficzel changed the title DRAFT: Raise PhpStan to level 8 - Part 2 TASK: Raise PhpStan to level 8 - Part 2 Jun 4, 2026
@github-actions github-actions Bot added the Task label Jun 4, 2026
@mficzel
mficzel changed the base branch from 9.1 to 9.2 June 5, 2026 07:34
@github-actions github-actions Bot added 9.2 and removed 9.1 labels Jun 5, 2026

@kitsunet kitsunet left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Making progress, still reading through it, but so far great

@mficzel mficzel moved this from Backlog to In review in PostCon Sprint 2026 Jun 6, 2026

@kdambekalns kdambekalns left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Generally: 🎉

I left a few comments, though. And the introduced \Exceptions make me sad, as they are overly generic. WDYT?

Comment thread Neos.Flow/Classes/Security/Cryptography/RsaWalletServicePhp.php
Comment thread Neos.Flow/Classes/Security/Cryptography/RsaWalletServicePhp.php Outdated
Comment thread Neos.Flow/Classes/Security/Authentication/Token/PasswordToken.php Outdated
Comment thread Neos.Flow/Classes/ResourceManagement/ResourceManager.php Outdated
Comment thread Neos.Flow/Classes/ResourceManagement/Streams/ResourceStreamWrapper.php Outdated
Comment thread Neos.Flow/Classes/ResourceManagement/Streams/ResourceStreamWrapper.php Outdated
Comment thread Neos.Flow/Classes/Reflection/ReflectionService.php
Comment thread Neos.Flow/Classes/Reflection/ReflectionService.php Outdated
Comment thread Neos.Flow/Classes/Reflection/ReflectionService.php Outdated

@kitsunet kitsunet left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think karstens comments are valid and should be included, but generally all fine

Comment thread Neos.Flow/Classes/Validation/Validator/GenericObjectValidator.php
Comment thread Neos.Flow/Classes/Session/Data/SessionMetaDataStore.php
Co-authored-by: Karsten Dambekalns <karsten@dambekalns.de>
@mficzel mficzel closed this Jun 11, 2026
@github-project-automation github-project-automation Bot moved this from In review to Done in PostCon Sprint 2026 Jun 11, 2026
@mficzel mficzel reopened this Jun 11, 2026
@mficzel
mficzel force-pushed the phpstanLevel8-v3-part2 branch from 5ca0492 to c57f177 Compare June 11, 2026 16:31
@kitsunet
kitsunet merged commit bebf876 into neos:9.2 Jun 11, 2026
49 of 50 checks passed
@mhsdesign

Copy link
Copy Markdown
Member

Thank you all for pushing this and finalising it!!! :) <3

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

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants