Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
# PHPStan Rules
Set of additional PHPStan rules

*For legacy codebase*
- check if property and constant shouldn't be set as protected (when is not inherited or class is not abstract)
- check if property name starts with underscore
- check if constant name is uppercase
- check if constant name is uppercase

*PHPMD rules*
- check for boolean argument flag
- more coming soon ...

## Installation

Run `composer require --dev pmarki/phpstan-rules`

Edit your phpstan configuration file and add

```
includes:
- vendor/pmarki/phpstan-rules/extension.neon
```