Provides an ALL-IN-ONE
plugin for Psalm
composer require ghostwriter/psalm-plugin --dev
vendor/bin/psalm-plugin enable ghostwriter/psalm-plugin
vendor/bin/psalm
-
PHP Standards Recommendations
-
Cache
-
Container
- Resolve return type for the
get
method.
- Resolve return type for the
-
Clock
-
Event Dispatcher
-
Link
-
Log
-
Http
-
-
PHPUnit
- Suppress
MissingThrowsDocblock
for classes that extendingTestCase
- Suppress
UnusedClass
for classes that extendingTestCase
- Suppress
PropertyNotSetInConstructor
for classes that extendingTestCase
- Using
assertPreConditions
method - Using
setUp
method - Using
setUpBeforeClass
method - Using
@before
docblock - Using
@beforeClass
docblock - Using
#[Before]
attribute - Using
#[BeforeClass]
attribute - Using
#[PreCondition]
attribute
- Using
- Suppress
-
Privatization
-
Finalize every class that has no children
(!isAbstract && !isAnonymous) -
Finalize every class method on an abstract class if possible
(!isAbstract && !isPrivate) -
Change protected class method to private if possible
-
Change protected class property to private if possible
-
-
Strict Types
-
[Request a Feature]
Please see CHANGELOG.md for more information on what has changed recently.
If you discover any security-related issues, please use Security Advisories
instead of using the issue tracker.
The BSD-3-Clause. Please see License File for more information.