Upgrade to Psalm 7 and psalm-plugin-laravel v4 - #500
Closed
alies-dev wants to merge 1 commit into
Closed
Conversation
alies-dev
force-pushed
the
add-psalm7-attributes
branch
from
March 16, 2026 17:00
ccde21d to
7cbdd89
Compare
- Bump vimeo/psalm to ^7.0, psalm/plugin-laravel to ^4.0 - Bump orchestra/testbench to ^10.0, phpunit to ^11.0, laravel/framework to >=12 - Add #[\Override] attribute to 20 methods overriding parent/interface methods - Replace deprecated $this->request->get() with $this->request->input() - Replace deprecated $time->getCarbon() with $time->carbon - Suppress new Psalm 7 strictness rules in psalm.xml (ClassMustBeFinal, MissingPureAnnotation, MissingImmutableAnnotation, etc.) - Regenerate psalm-baseline.xml (net 3 lines smaller)
alies-dev
force-pushed
the
add-psalm7-attributes
branch
from
March 16, 2026 17:05
7cbdd89 to
fdee427
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Upgrade static analysis tooling to Psalm 7 + psalm-plugin-laravel v4:
vimeo/psalm ^7.0@beta,psalm/plugin-laravel ^4.0@beta,orchestra/testbench ^10.0,phpunit ^11.0,laravel/framework >=12#[\Override]to 20 methods that override parent/interface methods$this->request->get()→input()(3 places),$time->getCarbon()→$time->carbonClassMustBeFinal(suppress)MissingPureAnnotation(info)MissingAbstractPureAnnotation(info)MissingInterfaceImmutableAnnotation(info)MissingImmutableAnnotation(info)DeprecatedMethodforgetCarbon)Test plan
./vendor/bin/psalm --no-cachepasses with zero errors