Add vimeo/psalm
and psalm/plugin-phpunit
#1230
Merged
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.
This pull request adds the Psalm as a development dependency to the project.
Psalm is a static analysis tool that can help identify errors in PHP code before it's even run, which can save time and improve the overall quality of the codebase.
Motivation
The motivation for adding Psalm as a dev dependency is to improve the quality of the project's codebase by catching potential errors before they can cause issues in production. By running Psalm as part of the development process, we can identify and fix these errors earlier in the development cycle, which can save time and effort in the long run.
Changes Made
vimeo/psalm
andpsalm/plugin-phpunit
to thecomposer.json
file under therequire-dev
section.psalm.xml.dist
andpsalm-baseline.xml
files to the project, which includes the configuration settings for running Psalm.Scripts
composer check
composer test
composer phpunit
composer psalm