PHP Static Analysis Tool - discover bugs in your code without running it!
-
Updated
Apr 18, 2022 - Nunjucks
{{ message }}
PHP Static Analysis Tool - discover bugs in your code without running it!
Docker image that provides static analysis tools for PHP
Next-gen phpDoc parser with support for intersection types and generics
Do you use Symfony, Coding Standards, maintain PHP packages, monorepo, local packages, static websites and most importantly... are you extreemely lazy? You'll love the candies you find here! :)
Symfony extension for PHPStan
Doctrine extensions for PHPStan
Extra strict and opinionated rules for PHPStan
PHPUnit extensions and rules for PHPStan
Could I get some help on how to run this tool in a Windows environment?
Our projects are inside docker containers using lando/lando, not sure if that is relevant.
Would be awesome if it was possible to install this on Windows so it is project independent.
I know how to install PHP and add things to PATH, but not entirely sure how to get started with this one.
[READ-ONLY] 20+ Coding Standard checkers for PHP projects with focus on Clean Architecture
Composer plugin for automatic installation of PHPStan extensions.
PHPStan rules for detecting usage of deprecated classes, methods, properties, constants and traits.
Allows old code to use new standards
WordPress extensions for PHPStan
Support generics types in PhpStorm via psalm / phpstan docblock
Part of mglaman/phpstan-drupal#359
Create stub files for the following field types:
\Drupal\datetime_range\Plugin\Field\FieldType\DateRangeItemwhen cs2pr completes and no errors/warnings have to be emitted, the screen stays empty.
as a user I dont know whether everything worked well and nothing had to be reported or there was a error and I dont see it.
at best we could emit a processed x errors and y warnings or similar status message at the very end into STDERR, so we dont destory possible consumers of our gihtub-api checks
PHPStan extension for webmozart/assert
Docker image containing multiple code quality tools for PHP (phpqatools and more).
Up-to-date WordPress function and class declaration stubs for static analysis by PHPStan
Nette Framework class reflection extension for PHPStan & framework-specific rules
for newer 2.x releases some api is the same to 3.x.
its only about the low hanging fruit. I guess we mostly need to check places like
https://github.com/staabm/phpstan-dba/blob/4d1c84b2dd4241ab9aee1f8e111a84e9d1df6313/src/Extensions/DoctrineConnectionExecuteQueryDynamicReturnTypeExt
PHPStan rules to detect disallowed method & function calls, constant, namespace & superglobal usages
Add a description, image, and links to the phpstan topic page so that developers can more easily learn about it.
To associate your repository with the phpstan topic, visit your repo's landing page and select "manage topics."
The Problem
With the new
model-propertytype andModelPropertyRuleLarastan now has the ability to check the existence of model columns that are given to a method.Adding the
model-propertytype to the Laravel's core methods are done with the help of PHPstan stubs. Some [examples](https://github.com/nunomaduro/larastan/blob/master/stubs/Elo