slam/phpstan-extensions
PHPStan extensions with extra strict rules: unused variables, closure parameter typehints, enforce ::class notation, forbid goto, naming conventions, validate PHPUnit annotation FQCNs, and restrict access to globals/static properties in specific contexts.
Full Changelog: https://github.com/Slamdunk/phpstan-extensions/compare/v6.8.0...v6.9.0
microtime() calls by @sasezaki in https://github.com/Slamdunk/phpstan-extensions/pull/76Full Changelog: https://github.com/Slamdunk/phpstan-extensions/compare/v6.7.0...v6.8.0
Full Changelog: https://github.com/Slamdunk/phpstan-extensions/compare/v6.6.0...v6.7.0
Full Changelog: https://github.com/Slamdunk/phpstan-extensions/compare/v6.5.0...v6.6.0
Full Changelog: https://github.com/Slamdunk/phpstan-extensions/compare/v6.4.1...v6.5.0
nikic/php-parser into dev dependencies by @voku in https://github.com/Slamdunk/phpstan-extensions/pull/60Full Changelog: https://github.com/Slamdunk/phpstan-extensions/compare/v6.4.0...v6.4.1
Full Changelog: https://github.com/Slamdunk/phpstan-extensions/compare/v6.3.0...v6.4.0
compact() calls by @mfn in https://github.com/Slamdunk/phpstan-extensions/pull/56Full Changelog: https://github.com/Slamdunk/phpstan-extensions/compare/v6.2.0...v6.3.0
nikic/php-parser v5 by @Slamdunk in https://github.com/Slamdunk/phpstan-extensions/pull/52Full Changelog: https://github.com/Slamdunk/phpstan-extensions/compare/v6.1.0...v6.2.0
Full Changelog: https://github.com/Slamdunk/phpstan-extensions/compare/v6.0.0...v6.1.0
Full Changelog: https://github.com/Slamdunk/phpstan-extensions/compare/v5.1.0...v6.0.0
Added new not-now-rules.neon configuration to forbid raw date system calls, (https://github.com/Slamdunk/phpstan-extensions/pull/31)
Fix variables in anonymous functions are reporting as unused when they are used (#28)
Allow PHP 8.0
Symfony related rules moved to dedicated conf conf/symfony-rules.neon.
DateTimeImmutableAlteredAndUnusedRule, superseeded by PHPStan 0.12 release on level 4Use RuleErrorBuilder for more precise line info #19
Add MissingClosureParameterTypehintRule #18
Fix False-positive unused variable (#16)
Bugfix: Filesystem::isReasable is not an API
SlamPhpStan\SymfonyFilesystemRule: forbid calls to raw filesystem functions well wrapped by
symfony/filesystem componentSlamPhpStan\SymfonyProcessRule: forbid calls to raw system functions well wrapped by
symfony/process componentAdded SlamPhpStan\DateTimeImmutableAlteredAndUnusedRule: check for DateTimeImmutable calls that alter the object but don't use the result; likely an error of the transition from mutable DateTime class
Added SlamPhpStan\AccessGlobalVariableWithinContextRule: inhibit the access to globals within classes that extend or implement a certain class/interface
yii-rules: inhibit also yii\db\ActiveQueryInterface from accessing Yii::$app singletons
Added SlamPhpStan\AccessStaticPropertyWithinModelContextRule: inhibit the access to static attributes of a class within classes that extend or implement a certain class/interface, useful to prohibit usage of singletons in models
Support for PHPStan 0.11
Handle class strings that start with a backslash
Support for PHPStan 0.10
UnusedVariableRule: skip global variables
Added SlamPhpStan\UnusedVariableRule
How can I help you explore Laravel packages today?