PHPStan
Guilty Of PHP articles about PHPStan
2 articles
-
Annotate an Array of Task Objects with PHPDoc
Use `Task[]` or `array<Task>` to describe the values PHPStan should expect, and reserve `list<Task>` for arrays whose keys must also start at zero and stay sequential.
-
Choose a PHP Static Analyzer and Formatter by the Job You Need Done
Use PHPStan or Psalm to report potential code issues, then choose PHP CS Fixer or PHPCS with PHPCBF for style rules and fixes. Project standards and editor support determine the practical fit.
