-
Notifications
You must be signed in to change notification settings - Fork 2
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
Issue #30: Replace Psalm with PHPStan #31
base: 3.0
Are you sure you want to change the base?
Conversation
@arhimede Should we push forward implementing PHPStan on branch Note This PR was created from branch |
Let's modify the branch 3.0 to use phpstan |
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.
- Replace all occurrences of
DotKernel
withDotkernel
.
- In
src/Assertion/AssertionPluginManager.php
replace:
/** @var string */
protected $instanceOf = AssertionInterface::class;
with
/** @var null|class-string<AssertionInterface> $instanceOf */
protected $instanceOf = AssertionInterface::class;
- In
src/Role/Provider/RoleProviderPluginManager.php
replace:
/** @var string */
protected $instanceOf = RoleProviderInterface::class;
with
/** @var null|class-string<RoleProviderInterface> $instanceOf */
protected $instanceOf = RoleProviderInterface::class;
- Add to
phpstan.neon
'signoreErrors
the 3 errors reported by PHPStan.
 | ||
 | ||
 |
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.
 | |
 |
## Badges | ||
|
||
 | ||
 |
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.
 | |
 |
"phpunit/phpunit": "^10.2", | ||
"vimeo/psalm": "^5.13", | ||
"laminas/laminas-coding-standard": "^2.5" | ||
"laminas/laminas-coding-standard": "^2.5", |
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.
"laminas/laminas-coding-standard": "^2.5", | |
"laminas/laminas-coding-standard": "^3.0", |
No description provided.