NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #1194 most downloaded on Packagist
Provides rules for phpstan/phpstan.
Latest stable
2.17.1
Last release 12 days ago
10 Nov 2026
Release timing varies
gaps range from 8 days to 8 months
Nearly every release is documented
notes for 58 of 58 stable releases
Nothing withdrawn
no release was ever pulled
8 years old
58 releases · first in 2018
Drag across the ruler to compare, or tap a release to open it.
<!-- Release notes generated using configuration in .github/release.yaml at 2.17.1 -->
<!-- Release notes generated using configuration in .github/release.yaml at 2.17.1 -->
symfony/filesystem and symfony/yaml by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/1173Full Changelog: https://github.com/ergebnis/phpstan-rules/compare/2.17.0...2.17.1
Your coding agent can read these notes before it upgrades. Set up the MCP server →
For a full diff see [2.17.0...2.17.1][2.17.0...2.17.1].
Classes\PHPUnit\Framework\TestCaseWithSuffixRule to skip the lookup of PHPUnit\Framework\TestCase when phpunit/phpunit is not installed ([#1182]), by [@konradmichalik]<!-- Release notes generated using configuration in .github/release.yaml at 2.17.0 -->
<!-- Release notes generated using configuration in .github/release.yaml at 2.17.0 -->
Reference by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/1167ParameterName by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/1168ParameterExample by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/1169Full Changelog: https://github.com/ergebnis/phpstan-rules/compare/2.16.0...2.17.0
For a full diff see [2.16.0...2.17.0][2.16.0...2.17.0].
main when no release is installed, which requires ergebnis/version:^1.4.0 ([#1167]), by [@localheinz]<!-- Release notes generated using configuration in .github/release.yaml at 2.16.0 -->
<!-- Release notes generated using configuration in .github/release.yaml at 2.16.0 -->
Methods\NoReturnByReferenceRule by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/1153PropertyHooks\NoReturnByReferenceRule by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/915PropertyHooks\NoParameterWithNullableTypeDeclarationRule by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/1154Documentation status check by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/1157CallLikes\NoNamedArgumentRule when invoked method cannot be resolved by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/959Methods\FinalInAbstractClassRule by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/1163final by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/1162Full Changelog: https://github.com/ergebnis/phpstan-rules/compare/2.15.0...2.16.0
For a full diff see [2.15.0...2.16.0][2.15.0...2.16.0].
PropertyHooks\NoReturnByReferenceRule, which reports an error when a property hook returns by reference ([#915]), by [@localheinz]PropertyHooks\NoParameterWithNullableTypeDeclarationRule, which reports an error when a property hook has a parameter with a nullable type declaration ([#1154]), by [@localheinz]doc/rules/, generated from the definitions of the rules ([#1156]), by [@localheinz]composer-runtime-api:^2.0.0 ([#1158]), by [@localheinz]ignoreDoctrineEntities parameter to Classes\FinalRule and Methods\FinalInAbstractClassRule, which allow requiring Doctrine entities to be final when using native lazy objects ([#1162]), by [@localheinz]CallLikes\NoNamedArgumentRule to report named arguments instead of causing an internal error when the invoked method cannot be resolved ([#959]), by [@localheinz]Methods\FinalInAbstractClassRule to no longer ignore Doctrine embeddables, which Doctrine does not extend ([#1163]), by [@localheinz]<!-- Release notes generated using configuration in .github/release.yaml at 2.15.0 -->
<!-- Release notes generated using configuration in .github/release.yaml at 2.15.0 -->
ArrowFunctions\NoNullableReturnTypeDeclarationRule by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/1146ArrowFunctions\NoParameterWithNullableTypeDeclarationRule by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/1149ArrowFunctions\NoParameterWithNullDefaultValueRule by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/1150ArrowFunctions\NoParameterPassedByReferenceRule by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/1151Full Changelog: https://github.com/ergebnis/phpstan-rules/compare/2.14.2...2.15.0
For a full diff see [2.14.2...2.15.0][2.14.2...2.15.0].
ArrowFunctions\NoNullableReturnTypeDeclarationRule, which reports an error when an arrow function has a nullable return type declaration ([#1146]), by [@localheinz]ArrowFunctions\NoParameterWithNullableTypeDeclarationRule, which reports an error when an arrow function has a parameter with a nullable type declaration ([#1149]), by [@localheinz]ArrowFunctions\NoParameterWithNullDefaultValueRule, which reports an error when an arrow function has a parameter with null as default value ([#1150]), by [@localheinz]ArrowFunctions\NoParameterPassedByReferenceRule, which reports an error when an arrow function has a parameter that is passed by reference ([#1151]), by [@localheinz]<!-- Release notes generated using configuration in .github/release.yaml at 2.14.2 -->
<!-- Release notes generated using configuration in .github/release.yaml at 2.14.2 -->
Closures\NoParameterWithNullDefaultValueRule in rules.neon by @alfredbez in https://github.com/ergebnis/phpstan-rules/pull/1140Full Changelog: https://github.com/ergebnis/phpstan-rules/compare/2.14.1...2.14.2
For a full diff see [2.14.1...2.14.2][2.14.1...2.14.2].
rules.neon to register Closures\NoParameterWithNullDefaultValueRule ([#1140]), by [@alfredbez]<!-- Release notes generated using configuration in .github/release.yaml at 2.14.1 -->
<!-- Release notes generated using configuration in .github/release.yaml at 2.14.1 -->
ergebnis/.github by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/1119phpstan/phpstan by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/1126symfony/yaml by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/1137ubuntu-26.04 instead of ubuntu-24.04 by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/1136Methods\InvokeParentHookMethodRule to detect invocation of parent hook method in finally block by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/1139Full Changelog: https://github.com/ergebnis/phpstan-rules/compare/2.14.0...2.14.1
For a full diff see [2.14.0...2.14.1][2.14.0...2.14.1].
Methods\InvokeParentHookMethodRule to detect the invocation of a parent hook method in a finally block ([#1139]), by [@localheinz]composer(deps-dev): Bump phpstan/phpstan-deprecation-rules from 2.0.3 to 2.0.4 by @dependabot[bot] in https://github.com/ergebnis/phpstan-rules/pull/1…
<!-- Release notes generated using configuration in .github/release.yaml at 2.14.0 -->
zizmor by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/1042renew.yaml into configuration by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/1049ubuntu-24.04 instead of ubuntu-latest by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/1099https instead of http for monthly downloads badge by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/1100NoParameterPassedByReferenceRule by @Legend999 in https://github.com/ergebnis/phpstan-rules/pull/1036rector/rector on GitHub Actions by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/1103Full Changelog: https://github.com/ergebnis/phpstan-rules/compare/2.13.1...2.14.0
For a full diff see [2.13.1...2.14.0][2.13.1...2.14.0].
Functions\NoParameterPassedByReferenceRule to use the appropriate error identifier ([#1036]), by [@Legend999]<!-- Release notes generated using configuration in .github/release.yaml at 2.13.1 -->
<!-- Release notes generated using configuration in .github/release.yaml at 2.13.1 -->
Files\NoPhpStanIgnoreRule by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/1011Full Changelog: https://github.com/ergebnis/phpstan-rules/compare/2.13.0...2.13.1
For a full diff see [2.13.0...2.13.1][2.13.0...2.13.1].
Files\NoPhpstanIgnoreRule to traverse into all nodes ([#1011]), by [@localheinz]<!-- Release notes generated using configuration in .github/release.yaml at 2.13.0 -->
<!-- Release notes generated using configuration in .github/release.yaml at 2.13.0 -->
phpstan/phpstan:^2.1.35 by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/1010Files\NoPhpstanIgnoreRule by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/1009Full Changelog: https://github.com/ergebnis/phpstan-rules/compare/2.12.0...2.13.0
For a full diff see [2.12.0...2.13.0][2.12.0...2.13.0].
Files\NoPhpstanIgnoreRule, which reports an error when a @phpstan-ignore, @phpstan-ignore-line, or @phpstan-ignore-next-line tag is used to suppress an error ([#1009]), by [@localheinz]phpstan/phpstan:^2.1.35 ([#1010]), by [@localheinz]<!-- Release notes generated using configuration in .github/release.yaml at 2.12.0 -->
<!-- Release notes generated using configuration in .github/release.yaml at 2.12.0 -->
Full Changelog: https://github.com/ergebnis/phpstan-rules/compare/2.11.0...2.12.0
For a full diff see [2.11.0...2.12.0][2.11.0...2.12.0].
<!-- Release notes generated using configuration in .github/release.yaml at 2.11.0 -->
<!-- Release notes generated using configuration in .github/release.yaml at 2.11.0 -->
Full Changelog: https://github.com/ergebnis/phpstan-rules/compare/2.10.5...2.11.0
For a full diff see [2.10.5...2.11.0][2.10.5...2.11.0].
<!-- Release notes generated using configuration in .github/release.yaml at 2.10.5 -->
<!-- Release notes generated using configuration in .github/release.yaml at 2.10.5 -->
CallLikes\NoNamedArgumentRule to handle calls to constructors of variable class names by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/957CallLikes\NoNamedArgumentRule to describe known calls only by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/958Full Changelog: https://github.com/ergebnis/phpstan-rules/compare/2.10.4...2.10.5
For a full diff see [2.10.4...2.10.5][2.10.4...2.10.5].
Methods\NoNamedArgumentRule to handle calls to constructors of variable class names ([#957]), by [@localheinz]Methods\NoNamedArgumentRule to describe known calls only ([#958]), by [@localheinz]<!-- Release notes generated using configuration in .github/release.yaml at 2.10.4 -->
<!-- Release notes generated using configuration in .github/release.yaml at 2.10.4 -->
CallLikes\NoNamedArgumentRule to handle static calls on variable expressions by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/947CallLikes\NoNamedArgumentRule to handle calls on invokables by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/948CallLikes\NoNamedArgumentRule to handle calls on callables assigned to properties by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/950CallLikes\NoNamedArgumentRule to handle other calls with generic error message by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/951Full Changelog: https://github.com/ergebnis/phpstan-rules/compare/2.10.3...2.10.4
For a full diff see [2.10.3...2.10.4][2.10.3...2.10.4].
Methods\NoNamedArgumentRule to handle static calls on variable expressions ([#947]), by [@localheinz]Methods\NoNamedArgumentRule to handle calls on invokables ([#948]), by [@localheinz]Methods\NoNamedArgumentRule to handle calls on callables assigned to properties ([#949]), by [@localheinz]Methods\NoNamedArgumentRule to handle all other calls with generic error message ([#951]), by [@localheinz]<!-- Release notes generated using configuration in .github/release.yaml at 2.10.3 -->
<!-- Release notes generated using configuration in .github/release.yaml at 2.10.3 -->
InvokeParentHookMethodRule by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/944Full Changelog: https://github.com/ergebnis/phpstan-rules/compare/2.10.2...2.10.3
For a full diff see [2.10.2...2.10.3][2.10.2...2.10.3].
Methods\InvokeParentHookMethodRule to ignore comments ([#944]), by [@localheinz]<!-- Release notes generated using configuration in .github/release.yaml at 2.10.2 -->
<!-- Release notes generated using configuration in .github/release.yaml at 2.10.2 -->
Full Changelog: https://github.com/ergebnis/phpstan-rules/compare/2.10.1...2.10.2
For a full diff see [2.10.1...2.10.2][2.10.1...2.10.2].
Methods\InvokeParentHookMethodRule ([#943]), by [@localheinz]<!-- Release notes generated using configuration in .github/release.yaml at 2.10.1 -->
<!-- Release notes generated using configuration in .github/release.yaml at 2.10.1 -->
Invocation::never() by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/941never invocation by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/942Full Changelog: https://github.com/ergebnis/phpstan-rules/compare/2.10.0...2.10.1
For a full diff see [2.10.0...2.10.1][2.10.0...2.10.1].
Methods\InvokeParentHookMethodRule ([#940]), by [@localheinz]<!-- Release notes generated using configuration in .github/release.yaml at 2.10.0 -->
<!-- Release notes generated using configuration in .github/release.yaml at 2.10.0 -->
InvokeParentHookMethodRule by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/939Full Changelog: https://github.com/ergebnis/phpstan-rules/compare/2.9.0...2.10.0
For a full diff see [2.9.0...2.10.0][2.9.0...2.10.0].
Methods\InvokeParentHookMethodRule, which reports an error when a hook method that overrides a hook method in a parent class does not invoke the overridden hook method in the expected order ([#939]), by [@localheinz]<!-- Release notes generated using configuration in .github/release.yaml at 2.9.0 -->
<!-- Release notes generated using configuration in .github/release.yaml at 2.9.0 -->
phpstan/phpstan:^2.1.8 by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/938NoNamedArgumentRule by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/916Full Changelog: https://github.com/ergebnis/phpstan-rules/compare/2.8.0...2.9.0
For a full diff see [2.8.0...2.9.0][2.8.0...2.9.0].
CallLikes\NoNamedArgumentRule, which reports an error when an anonymous function, a function, or a method is invoked using a named argument ([#914]), by [@localheinz]phpstan/phpstan:^2.1.8 ([#938]), by [@localheinz]<!-- Release notes generated using configuration in .github/release.yaml at 2.8.0 -->
<!-- Release notes generated using configuration in .github/release.yaml at 2.8.0 -->
allRules parameter to allow disabling and enabling all rules by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/913NoAssignByReferenceRule by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/914Full Changelog: https://github.com/ergebnis/phpstan-rules/compare/2.7.0...2.8.0
For a full diff see [2.7.0...2.8.0][2.7.0...2.8.0].
allRules parameter to allow disabling and enabling all rules ([#913]), by [@localheinz]Expressions\NoAssignByReferenceRule, which reports an error when a variable is assigned by reference ([#914]), by [@localheinz]<!-- Release notes generated using configuration in .github/release.yaml at 2.7.0 -->
<!-- Release notes generated using configuration in .github/release.yaml at 2.7.0 -->
NoParameterPassedByReferenceRule by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/911NoReturnByReferenceRule by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/912Full Changelog: https://github.com/ergebnis/phpstan-rules/compare/2.6.1...2.7.0
For a full diff see [2.6.1...2.7.0][2.6.1...2.7.0].
Closures\NoParameterPassedByReferenceRule, Functions\NoParameterPassedByReferenceRule, Methods\NoParameterPassedByReferenceRule, which report an error when a closure, a function, or a method has a parameter that is passed by reference ([#911]), by [@localheinz]Functions\NoReturnByReferenceRule and Methods\NoReturnByReferenceRule, which report an error when a function or a method returns by reference ([#912]), by [@localheinz]<!-- Release notes generated using configuration in .github/release.yaml at 2.6.1 -->
<!-- Release notes generated using configuration in .github/release.yaml at 2.6.1 -->
nikic/php-parser by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/898Full Changelog: https://github.com/ergebnis/phpstan-rules/compare/2.6.0...2.6.1
For a full diff see [2.6.0...2.6.1][2.6.0...2.6.1].
Methods\NoParameterWithNullableTypeDeclarationRule to use the appropriate error identifier ([#902]), by [@manuelkiessling]<!-- Release notes generated using configuration in .github/release.yaml at 2.6.0 -->
<!-- Release notes generated using configuration in .github/release.yaml at 2.6.0 -->
phpstan/phpstan:^2.0.0 by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/873Full Changelog: https://github.com/ergebnis/phpstan-rules/compare/2.5.2...2.6.0
For a full diff see [2.5.2...2.6.0][2.5.2...2.6.0].
phpstan/phpstan:^2.0.0 ([#873]), by [@localheinz]<!-- Release notes generated using configuration in .github/release.yaml at 2.5.2 -->
<!-- Release notes generated using configuration in .github/release.yaml at 2.5.2 -->
Analyzer by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/896null is referenced with incorrect case or relative to the root namespace by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/897Full Changelog: https://github.com/ergebnis/phpstan-rules/compare/2.5.1...2.5.2
For a full diff see [2.5.1...2.5.2][2.5.1...2.5.2].
Closures\NoNullableReturnTypeDeclarationRule, Closures\NoParameterWithNullableTypeDeclarationRule, Functions\NoNullableReturnTypeDeclarationRule, Functions\NoParameterWithNullableTypeDeclarationRule, Methods\NoNullableReturnTypeDeclarationRule, Methods\NoParameterWithNullableTypeDeclarationRule to detect cases where null is referenced with incorrect case or relative to the root namespace ([#897]), by [@localheinz]<!-- Release notes generated using configuration in .github/release.yaml at 2.5.1 -->
<!-- Release notes generated using configuration in .github/release.yaml at 2.5.1 -->
RuleError with identifier by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/882Methods\FinalInAbstractClassRule to ignore Doctrine embeddables and entities by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/396NoCompactRule to detect usages of compact() with incorrect case by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/889protected method in anonymous class by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/890protected methods declared in traits by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/894#[Before] attribute should not be private in final classes by @cosmastech in https://github.com/ergebnis/phpstan-rules/pull/863phpunit/phpunit annotations to be private by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/895Full Changelog: https://github.com/ergebnis/phpstan-rules/compare/2.5.0...2.5.1
For a full diff see [2.5.0...2.5.1][2.5.0...2.5.1].
Methods\FinalInAbstractClassRule to ignore Doctrine embeddables and entities ([#396]), by [@localheinz]Expressions\NoCompactRule to detect usages of compact() with incorrect case ([#889]), by [@localheinz]Methods\PrivateInFinalClassRule to use more appropriate message when detecting a protected method in an anonymous class ([#890]), by [@localheinz]Methods\PrivateInFinalClassRule to ignore protected methods from traits ([#891]), by [@localheinz]Methods\PrivateInFinalClassRule to ignore protected methods with phpunit/phpunit attributes requiring methods to be protected ([#863]), by [@cosmastech]Methods\PrivateInFinalClassRule to ignore protected methods with phpunit/phpunit annotations requiring methods to be protected ([#895]), by [@cosmastech]<!-- Release notes generated using configuration in .github/release.yaml at 2.5.0 -->
<!-- Release notes generated using configuration in .github/release.yaml at 2.5.0 -->
nikic/php-parser by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/878Full Changelog: https://github.com/ergebnis/phpstan-rules/compare/2.4.0...2.5.0
For a full diff see [2.4.0...2.5.0][2.4.0...2.5.0].
nikic/php-parser ([#878]), by [@localheinz]Fix: Remove deprecated checkMissingIterableValueType option by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/870
<!-- Release notes generated using configuration in .github/release.yaml at 2.4.0 -->
ergebnis/php-package-template by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/869rector/rector by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/868checkMissingIterableValueType option by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/870checkGenericClassInNonGenericObjectType option by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/871Full Changelog: https://github.com/ergebnis/phpstan-rules/compare/2.3.0...2.4.0
For a full diff see [2.3.0...2.4.0][2.3.0...2.4.0].
<!-- Release notes generated using configuration in .github/release.yaml at 2.3.0 -->
<!-- Release notes generated using configuration in .github/release.yaml at 2.3.0 -->
Full Changelog: https://github.com/ergebnis/phpstan-rules/compare/2.2.0...2.3.0
For a full diff see [2.2.0...2.3.0][2.2.0...2.3.0].
<!-- Release notes generated using configuration in .github/release.yaml at 2.2.0 -->
<!-- Release notes generated using configuration in .github/release.yaml at 2.2.0 -->
infection/infection by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/631platform by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/671ergebnis/php-package-template by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/672ergebnis/php-package-template by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/685ergebnis/php-package-template by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/699nikic/php-parser:^5.0.0 by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/735Full Changelog: https://github.com/ergebnis/phpstan-rules/compare/2.1.0...2.2.0
For a full diff see [2.1.0...2.2.0][2.1.0...2.2.0].
nikic/php-parser:^5.0.0 ([#735]), by [@localheinz]<!-- Release notes generated using configuration in .github/release.yaml at 2.1.0 -->
<!-- Release notes generated using configuration in .github/release.yaml at 2.1.0 -->
ergebnis/php-package-template by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/570ergebnis/php-package-template by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/605Full Changelog: https://github.com/ergebnis/phpstan-rules/compare/2.0.0...2.1.0
For a full diff see [2.0.0...2.1.0][2.0.0...2.1.0].
<!-- Release notes generated using configuration in .github/release.yaml at 2.0.0 -->
<!-- Release notes generated using configuration in .github/release.yaml at 2.0.0 -->
~ operator to limit compatibility with PHP versions by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/507NoEmptyRule by @enumag in https://github.com/ergebnis/phpstan-rules/pull/525ergebnis/php-package-template by @localheinz in https://github.com/ergebnis/phpstan-rules/pull/539Full Changelog: https://github.com/ergebnis/phpstan-rules/compare/1.0.0...2.0.0
For a full diff see [1.0.0...2.0.0][1.0.0...2.0.0].
methodsAllowedToUseContainerTypeDeclarations parameter to allow configuring a list of method names that are allowed to have container parameter type declarations ([#541]), by [@localheinz]Expressions\NoEmptyRule ([#525]), by [@enumag]composer(deps-dev): bump ergebnis/php-cs-fixer-config from 2.5.1 to 2.5.2 (#298), by @dependabot[bot]
(v?\d+(.\d+)*)
ergebnis/php-cs-fixer-config from 2.5.1 to 2.5.2 (#298), by @dependabot[bot]actions/stale from v3.0.12 to v3.0.13 (#299), by @dependabot[bot]actions/checkout from v2.3.3 to v2.3.4 (#300), by @dependabot[bot]actions/cache from v2.1.2 to v2.1.3 (#301), by @dependabot[bot]ibiqlik/action-yamllint from v2 to v3 (#302), by @dependabot[bot]ergebnis/php-cs-fixer-config from 2.5.2 to 2.5.3 (#303), by @dependabot[bot]phpunit/phpunit from 8.5.8 to 8.5.9 (#304), by @dependabot[bot]gr2m/create-or-update-pull-request-action from v1.3.0 to v1.3.1 (#305), by @dependabot[bot]shivammathur/setup-php from 2.7.0 to 2.8.0 (#306), by @dependabot[bot]actions/github-script from v3.0.0 to v3.1 (#307), by @dependabot[bot]ergebnis/test-util from 1.3.0 to 1.4.0 (#308), by @dependabot[bot]actions/stale from v3.0.13 to v3.0.14 (#309), by @dependabot[bot]shivammathur/setup-php from 2.8.0 to 2.9.0 (#310), by @dependabot[bot]gr2m/create-or-update-pull-request-action from v1.3.1 to v1.3.3 (#311), by @dependabot[bot]phpunit/phpunit from 8.5.9 to 8.5.11 (#312), by @dependabot[bot]phpunit/phpunit from 8.5.11 to 8.5.13 (#313), by @dependabot[bot]ergebnis/php-cs-fixer-config from 2.5.3 to 2.7.0 (#314), by @dependabot[bot]ergebnis/php-library-template (#315), by @localheinzergebnis/php-cs-fixer-config from 2.7.0 to 2.8.0 (#316), by @dependabot[bot]ergebnis/php-cs-fixer-config from 2.8.0 to 2.9.0 (#317), by @dependabot[bot]ergebnis/php-cs-fixer-config from 2.9.0 to 2.10.0 (#318), by @dependabot[bot]ergebnis/composer-normalize from 2.9.0 to 2.13.0 (#319), by @dependabot[bot]ergebnis/composer-normalize from 2.13.0 to 2.13.2 (#320), by @dependabot[bot]ergebnis/php-library-template (#322), by @localheinzphpunit/phpunit from 8.5.13 to 8.5.14 (#324), by @dependabot[bot]ergebnis/php-cs-fixer-config from 2.10.0 to 2.11.0 (#325), by @dependabot[bot]actions/stale from v3.0.14 to v3.0.15 (#326), by @dependabot[bot]ergebnis/php-cs-fixer-config from 2.11.0 to 2.12.0 (#327), by @dependabot[bot]ergebnis/php-cs-fixer-config from 2.12.0 to 2.12.1 (#328), by @dependabot[bot]ergebnis/php-cs-fixer-config from 2.12.1 to 2.13.0 (#329), by @dependabot[bot]actions/cache from v2.1.3 to v2.1.4 (#330), by @dependabot[bot]actions/stale from v3.0.15 to v3.0.16 (#331), by @dependabot[bot]actions/stale from v3.0.16 to v3.0.17 (#332), by @dependabot[bot]stefanzweifel/git-auto-commit-action from v4.8.0 to v4.9.0 (#333), by @dependabot[bot]stefanzweifel/git-auto-commit-action from v4.9.0 to v4.9.1 (#334), by @dependabot[bot]shivammathur/setup-php from 2.9.0 to 2.10.0 (#335), by @dependabot[bot]stefanzweifel/git-auto-commit-action from v4.9.1 to v4.9.2 (#336), by @dependabot[bot]actions/stale from v3.0.17 to v3.0.18 (#337), by @dependabot[bot]ergebnis/composer-normalize from 2.13.2 to 2.13.3 (#338), by @dependabot[bot]phpunit/phpunit from 8.5.14 to 8.5.15 (#339), by @dependabot[bot]ergebnis/test-util from 1.4.0 to 1.5.0 (#340), by @dependabot[bot]stefanzweifel/git-auto-commit-action from v4.9.2 to v4.10.0 (#342), by @dependabot[bot]actions/cache from v2.1.4 to v2.1.5 (#341), by @dependabot[bot]ergebnis/php-cs-fixer-config from 2.13.0 to 2.13.1 (#343), by @dependabot[bot]actions/github-script from v3.1 to v4.0.2 (#345), by @dependabot[bot]shivammathur/setup-php from 2.10.0 to 2.11.0 (#346), by @dependabot[bot]ergebnis/php-cs-fixer-config from 2.13.1 to 2.14.0 (#348), by @dependabot[bot]stefanzweifel/git-auto-commit-action from 4.10.0 to 4.11.0 (#349), by @dependabot[bot]ibiqlik/action-yamllint from 3 to 3.0.1 (#350), by @dependabot[bot]actions/stale from 3.0.18 to 3.0.19 (#351), by @dependabot[bot]actions/cache from 2.1.5 to 2.1.6 (#353), by @dependabot[bot]ergebnis/composer-normalize from 2.13.3 to 2.15.0 (#356), by @dependabot[bot]phpunit/phpunit from 8.5.15 to 8.5.17 (#357), by @dependabot[bot]ibiqlik/action-yamllint from 3.0.1 to 3.0.2 (#359), by @dependabot[bot]actions/github-script from 4.0.2 to 5 (#373), by @dependabot[bot]actions/github-script from 4.1 to 5 (#376), by @dependabot[bot]actions/stale from 3.0.19 to 4 (#361), by @dependabot[bot]ibiqlik/action-yamllint from 3.0.2 to 3.0.4 (#367), by @dependabot[bot]stefanzweifel/git-auto-commit-action from 4.11.0 to 4.12.0 (#370), by @dependabot[bot]shivammathur/setup-php from 2.11.0 to 2.14.0 (#371), by @dependabot[bot]phpunit/phpunit from 8.5.17 to 8.5.21 (#374), by @dependabot[bot]shivammathur/setup-php from 2.14.0 to 2.15.0 (#377), by @dependabot[bot]ibiqlik/action-yamllint from 3.0.4 to 3.1 (#378), by @dependabot[bot]actions/checkout from 2.3.4 to 2.3.5 (#380), by @dependabot[bot]actions/checkout from 2.3.5 to 2.4.0 (#382), by @dependabot[bot]1.0 (#381), by @rpkamp.php_cs to .php-cs-fixer.php (#383), by @localheinz--generate-baseline option for generating baseline for phpstan/phpstan (#386), by @localheinzvimeo/psalm (#385), by @localheinzphpstan/phpstan and vimeo/psalm (#387), by @localheinznette/di from 3.0.1 to 3.0.11 (#389), by @dependabot[bot]Xdebug instead of pcov for collecting code coverage (#391), by @localheinzfriendsofphp/php-cs-fixer on fixtures (#358), by @localheinz8.0 (#323), by @localheinzClasses\FinalRule to inspect attributes (#395), by @localheinzFor a full diff see [0.15.3...1.0.0][0.15.3...1.0.0].
phpstan/phpstan:^1.0.0 and dropped support for non-stable versions of phpstan/phpstan ([#381]), by [@rpkamp]Classes\FinalRule to not report an error when a non-final class has a Doctrinbe\ORM\Mapping\Entity attribute ([#395]), by [@localheinz]composer(deps-dev): bump ergebnis/test-util from 1.0.0 to 1.1.0 (#263), by @dependabot[bot]
ergebnis/test-util from 1.0.0 to 1.1.0 (#263), by @dependabot[bot]ergebnis/composer-normalize from 2.7.1 to 2.8.1 (#264), by @dependabot[bot]ergebnis/license from 1.0.0 to 1.1.0 (#266), by @dependabot[bot]psalm/plugin-phpunit from 0.11.0 to 0.12.1 (#267), by @dependabot[bot]ergebnis/php-cs-fixer-config from 2.2.1 to 2.2.2 (#265), by @dependabot[bot]vimeo/psalm from 3.14.2 to 3.15 (#268), by @dependabot[bot]shivammathur/setup-php from 2.4.3 to 2.5.0 (#269), by @dependabot[bot]actions/stale from v3.0.10 to v3.0.11 (#270), by @dependabot[bot]actions/create-release from v1.1.3 to v1.1.4 (#271), by @dependabot[bot]gr2m/create-or-update-pull-request-action from v1.2.10 to v1.3.0 (#273), by @dependabot[bot]ergebnis/composer-normalize from 2.8.1 to 2.8.2 (#274), by @dependabot[bot]actions/checkout from v2.3.2 to v2.3.3 (#275), by @dependabot[bot]psalm/plugin-phpunit from 0.12.1 to 0.12.2 (#276), by @dependabot[bot]ergebnis/test-util from 1.1.0 to 1.2.0 (#277), by @dependabot[bot]shivammathur/setup-php from 2.5.0 to 2.6.0 (#278), by @dependabot[bot]ergebnis/test-util from 1.2.0 to 1.3.0 (#279), by @dependabot[bot]ergebnis/php-cs-fixer-config from 2.2.2 to 2.3.0 (#280), by @dependabot[bot]actions/cache from v2.1.1 to v2.1.2 (#281), by @dependabot[bot]actions/stale from v3.0.11 to v3.0.12 (#282), by @dependabot[bot]vimeo/psalm from 3.15 to 3.17.2 (#284), by @dependabot[bot]shivammathur/setup-php from 2.6.0 to 2.7.0 (#286), by @dependabot[bot]vimeo/psalm from 3.17.2 to 3.18.0 (#287), by @dependabot[bot]vimeo/psalm from 3.18.0 to 3.18.2 (#288), by @dependabot[bot]ergebnis/composer-normalize from 2.8.2 to 2.9.0 (#289), by @dependabot[bot]ibiqlik/action-yamllint from v1.0.0 to v2 (#291), by @dependabot[bot]ergebnis/php-cs-fixer-config from 2.3.0 to 2.4.0 (#290), by @dependabot[bot]ergebnis/php-library-template (#292), by @localheinzergebnis/php-cs-fixer-config from 2.4.0 to 2.5.1 (#293), by @dependabot[bot]For a full diff see [0.15.2...0.15.3][0.15.2...0.15.3].
github-actions(deps): bump actions/create-release from v1.1.1 to v1.1.2 (#250), by @dependabot[bot]
actions/create-release from v1.1.1 to v1.1.2 (#250), by @dependabot[bot]actions/checkout from v2.3.1 to v2.3.2 (#251), by @dependabot[bot]actions/create-release from v1.1.2 to v1.1.3 (#252), by @dependabot[bot]ergebnis/composer-normalize from 2.6.1 to 2.7.0 (#253), by @dependabot[bot]vimeo/psalm from 3.13.1 to 3.14.1 (#254), by @dependabot[bot]ergebnis/composer-normalize from 2.7.0 to 2.7.1 (#255), by @dependabot[bot]vimeo/psalm from 3.14.1 to 3.14.2 (#256), by @dependabot[bot]psalm/plugin-phpunit from 0.10.1 to 0.11.0 (#258), by @dependabot[bot]actions/github-script from v2 to v3 (#257), by @dependabot[bot]infection/infection from 0.13.6 to 0.15.3 (#260), by @dependabot[bot]phpunit/phpunit from 7.5.20 to 8.5.8 (#261), by @dependabot[bot]ergebnis/php-library-template (#262), by @localheinzFor a full diff see [0.15.1...0.15.2][0.15.1...0.15.2].
Build(deps-dev): Bump vimeo/psalm from 3.11.2 to 3.11.4 (#226), by @dependabot-preview[bot]
vimeo/psalm from 3.11.2 to 3.11.4 (#226), by @dependabot-preview[bot]psalm/plugin-phpunit from 0.10.0 to 0.10.1 (#227), by @dependabot-preview[bot]vimeo/psalm from 3.11.4 to 3.11.5 (#228), by @dependabot-preview[bot]main as default branch name (#229), by @localheinzergebnis/php-library-template (#231), by @localheinzactions/create-release from v1 to v1.1.1 (#235), by @dependabot[bot]actions/checkout from v2 to v2.3.0 (#236), by @dependabot[bot]vimeo/psalm from 3.11.5 to 3.11.6 (#238), by @dependabot[bot]vimeo/psalm from 3.11.6 to 3.12.1 (#240), by @dependabot[bot]ergebnis/php-cs-fixer-config from 2.1.2 to 2.2.0 (#241), by @dependabot[bot]actions/checkout from v2.3.0 to v2.3.1 (#239), by @dependabot[bot]ergebnis/php-library-template (#242), by @localheinzergebnis/php-cs-fixer-config from 2.2.0 to 2.2.1 (#243), by @dependabot[bot]vimeo/psalm from 3.12.1 to 3.12.2 (#244), by @dependabot[bot]ergebnis/composer-normalize from 2.5.1 to 2.6.1 (#246), by @dependabot[bot]vimeo/psalm from 3.12.2 to 3.13.1 (#249), by @dependabot[bot]For a full diff see [0.15.0...0.15.1][0.15.0...0.15.1].
Methods\FinalInAbstractClass rule to allow non-final public constructors in abstract classes ([#248]), by [@Slamdunk]Build(deps-dev): Bump ergebnis/composer-normalize from 2.3.0 to 2.3.2 (#204), by @dependabot-preview[bot]
ergebnis/composer-normalize from 2.3.0 to 2.3.2 (#204), by @dependabot-preview[bot]vimeo/psalm from 3.9.5 to 3.10.1 (#207), by @dependabot-preview[bot]psalm/plugin-phpunit from 0.9.0 to 0.9.1 (#208), by @dependabot-preview[bot]psalm/plugin-phpunit from 0.9.1 to 0.9.2 (#209), by @dependabot-preview[bot]psalm/plugin-phpunit from 0.9.2 to 0.10.0 (#210), by @dependabot-preview[bot]ergebnis/php-cs-fixer-config from 2.1.0 to 2.1.1 (#211), by @dependabot-preview[bot]ergebnis/php-library-template (#212), by @localheinzvimeo/psalm from 3.10.1 to 3.11.0 (#213), by @dependabot-preview[bot]vimeo/psalm from 3.11.0 to 3.11.1 (#214), by @dependabot-preview[bot]ergebnis/php-library-template (#216), by @localheinzvimeo/psalm from 3.11.1 to 3.11.2 (#215), by @dependabot-preview[bot]ergebnis/composer-normalize from 2.3.2 to 2.4.0 (#219), by @dependabot-preview[bot]ergebnis/php-cs-fixer-config from 2.1.1 to 2.1.2 (#217), by @dependabot-preview[bot]ergebnis/composer-normalize from 2.4.0 to 2.5.0 (#220), by @dependabot-preview[bot]ergebnis/composer-normalize from 2.5.0 to 2.5.1 (#221), by @dependabot-preview[bot]ergebnis/license from 0.1.0 to 1.0.0 (#222), by @dependabot-preview[bot]ergebnis/php-library-template (#223), by @localheinzClasses\PHPUnit\Framework\TestCaseWithSuffixRule (#225), by @localheinzFor a full diff see [0.14.4...0.15.0][0.14.4...0.15.0].
Classes\PHPUnit\Framework\TestCaseWithSuffixRule, which reports an error when a concrete class extending PHPUnit\Framework\TestCase does not have a Test suffix ([#225]), by [@localheinz]Build(deps-dev): Bump psalm/plugin-phpunit from 0.8.1 to 0.9.0 (#190), by @dependabot-preview[bot]
psalm/plugin-phpunit from 0.8.1 to 0.9.0 (#190), by @dependabot-preview[bot]ergebnis/composer-normalize from 2.2.2 to 2.2.3 (#191), by @dependabot-preview[bot]vimeo/psalm from 3.8.3 to 3.9.3 (#194), by @dependabot-preview[bot]ergebnis/composer-normalize from 2.2.3 to 2.2.4 (#195), by @dependabot-preview[bot]ergebnis/php-cs-fixer-config from 2.0.0 to 2.1.0 (#197), by @dependabot-preview[bot]vimeo/psalm from 3.9.3 to 3.9.4 (#198), by @dependabot-preview[bot]vimeo/psalm from 3.9.4 to 3.9.5 (#199), by @dependabot-preview[bot]ergebnis/composer-normalize from 2.2.4 to 2.3.0 (#200), by @dependabot-preview[bot]ergebnis/test-util from 0.9.1 to 1.0.0 (#201), by @dependabot-preview[bot]ORM\Mapping\Entity annotations in FinalRule (#202), by @localheinzergebnis/php-library-template (#203), by @localheinzFor a full diff see [0.14.3...0.14.4][0.14.3...0.14.4].
@ORM\Mapping\Entity annotations in FinalRule ([#202]), by [@localheinz]Build(deps-dev): Bump ergebnis/composer-normalize from 1.3.1 to 2.0.2 (#168), by @dependabot-preview[bot]
ergebnis/composer-normalize from 1.3.1 to 2.0.2 (#168), by @dependabot-preview[bot]ergebnis/composer-normalize from 2.0.2 to 2.1.0 (#169), by @dependabot-preview[bot]ergebnis/composer-normalize from 2.1.0 to 2.1.1 (#170), by @dependabot-preview[bot]ergebnis/composer-normalize from 2.1.1 to 2.1.2 (#171), by @dependabot-preview[bot]ergebnis/composer-normalize from 2.1.2 to 2.2.0 (#172), by @dependabot-preview[bot]ergebnis/php-library-template (#174), by @localheinzergebnis/php-library-template (#176), by @localheinzphpunit/phpunit from 7.5.18 to 7.5.19 (#175), by @dependabot-preview[bot]localheinz/composer-require-checker-action (#177), by @localheinzvimeo/psalm from 3.8.1 to 3.8.2 (#178), by @dependabot-preview[bot]phpunit/phpunit from 7.5.19 to 7.5.20 (#179), by @dependabot-preview[bot]ergebnis/composer-normalize from 2.2.0 to 2.2.1 (#180), by @dependabot-preview[bot]psalm/plugin-phpunit from 0.8.0 to 0.8.1 (#181), by @dependabot-preview[bot]ergebnis/composer-normalize from 2.2.1 to 2.2.2 (#182), by @dependabot-preview[bot]vimeo/psalm from 3.8.2 to 3.8.3 (#183), by @dependabot-preview[bot]ergebnis/php-library-template (#184), by @localheinzergebnis/php-cs-fixer-config from 1.1.3 to 2.0.0 (#185), by @dependabot-preview[bot]ergebnis/php-library-template (#187), by @localheinzFor a full diff see [0.14.2...0.14.3][0.14.2...0.14.3].
DeclareStrictTypesRule when it is a shebang ([#186]), by [@Great-Antique]Build(deps-dev): Bump ergebnis/php-cs-fixer-config from 1.1.0 to 1.1.1 (#163), by @dependabot-preview[bot]
ergebnis/php-cs-fixer-config from 1.1.0 to 1.1.1 (#163), by @dependabot-preview[bot]ergebnis/composer-normalize instead of localheinz/composer-normalize (#164), by @localheinzergebnis/composer-normalize from 2.0.0 to 2.0.1 (#165), by @dependabot-preview[bot]ergebnis/php-library-template (#167), by @localheinzFor a full diff see [0.14.1...0.14.2][0.14.1...0.14.2].
Fix: Update README.md in regard to parameter scope (#159), by @localheinz
README.md in regard to parameter scope (#159), by @localheinzreplace configuration (#161), by @localheinzFor a full diff see [0.14.0...0.14.1][0.14.0...0.14.1].
replace configuration from composer.json ([#161]), by [@localheinz]Build(deps-dev): Bump phpunit/phpunit from 7.5.16 to 7.5.17 (#137), by @dependabot-preview[bot]
phpunit/phpunit from 7.5.16 to 7.5.17 (#137), by @dependabot-preview[bot]localheinz/php-library-template (#140), by @localheinzlocalheinz/test-util from 0.7.0 to 0.8.0 (#143), by @dependabot-preview[bot]phpunit/phpunit from 7.5.17 to 8.4.3 (#142), by @dependabot-preview[bot]ergebnis/php-cs-fixer-config (#145), by @localheinzergebnis/php-cs-fixer-config from 1.0.0 to 1.1.0 (#146), by @dependabot-preview[bot]phpstan/phpstan:~0.12.0 (#147), by @localheinzphp-cs-fixer for fixtures (#148), by @localheinzergebnis/php-library-template (#149), by @localheinzCHANGELOG.md (#150), by @localheinzphpunit/phpunit from 8.4.3 to 8.5.0 (#153), by @dependabot-preview[bot]ergebnis/test-util instead of localheinz/test-util (#154), by @localheinzergebnis/php-library-template (#155), by @localheinzergebnis/php-library-template (#156), by @localheinzergebnis scope (#158), by @localheinzFor a full diff see [0.13.0...0.14.0][0.13.0...0.14.0].
Allowed installation of phpstan/phpstan:~0.12.0 ([#147]), by [@localheinz]
Renamed vendor namespace Localheinz to Ergebnis after move to [@ergebnis] ([#157]), by [@localheinz]
Run
composer remove localheinz/phpstan-rules
and
composer require ergebnis/phpstan-rules
to update.
Run
find . -type f -exec sed -i '.bak' 's/Localheinz\\PHPStan/Ergebnis\\PHPStan/g' {} \;
to replace occurrences of Localheinz\PHPStan with Ergebnis\PHPStan.
Run
find -type f -name '*.bak' -delete
to delete backup files created in the previous step.
Moved parameters into ergebnis section to prevent conflicts with global parameters ([#158]), by [@localheinz]
Where previously phpstan.neon looked like the following
parameters:
allowAbstractClasses: true
classesAllowedToBeExtended: []
classesNotRequiredToBeAbstractOrFinal: []
interfacesImplementedByContainers:
- Psr\Container\ContainerInterface
these parameters now need to be moved into an ergebnis section:
parameters:
- allowAbstractClasses: true
- classesAllowedToBeExtended: []
- classesNotRequiredToBeAbstractOrFinal: []
- interfacesImplementedByContainers:
- - Psr\Container\ContainerInterface
+ ergebnis:
+ allowAbstractClasses: true
+ classesAllowedToBeExtended: []
+ classesNotRequiredToBeAbstractOrFinal: []
+ interfacesImplementedByContainers:
+ - Psr\Container\ContainerInterface
Fix: Reference (#135), by @localheinz
Methods\PrivateInFinalClassRule (#126), by @localheinzFor a full diff see [0.12.2...0.13.0][0.12.2...0.13.0].
Methods\PrivateInFinalClassRule which reports an error when a method in a final class is protected when it could be private ([#126]), by [@localheinz]Fix: Exclude zendframework/zend-servicemanager from automatic updates (#130), by @localheinz
zendframework/zend-servicemanager from automatic updates (#130), by @localheinzMethods\FinalInAbstractClassRule (#132), by @localheinzFor a full diff see [0.12.1...0.12.2][0.12.1...0.12.2].
Methods\FinalInAbstractClassRule to avoid inappropriate errors ([#132]), by [@localheinz]Build(deps-dev): Bump phpunit/phpunit from 7.5.15 to 7.5.16 (#125), by @dependabot-preview[bot]
phpunit/phpunit from 7.5.15 to 7.5.16 (#125), by @dependabot-preview[bot]For a full diff see [0.12.0...0.12.1][0.12.0...0.12.1].
Methods\NoParameterWithContainerTypeDeclarationRule to avoid errors where class self is not found ([#128]), by [@localheinz]Fix: Update CHANGELOG.md (#119), by @localheinz
CHANGELOG.md (#119), by @localheinzlocalheinz/php-library-template (#120), by @localheinzlocalheinz/php-library-template (#121), by @localheinzMethods\NoParameterWithContainerTypeDeclarationRule (#122), by @localheinzMethods\FinalInAbstractClassRule (#123), by @localheinzFor a full diff see [0.11.0...0.12.0][0.11.0...0.12.0].
Methods\NoParameterWithContainerTypeDeclarationRule, which reports an error when a method has a type declaration that corresponds to a known dependency injection container or service locator ([#122]), by [@localheinz]Methods\FinalInAbstractClassRule, which reports an error when a concrete public or protected method in an abstract class is not final ([#123]), by [@localheinz]Build(deps-dev): Bump phpstan/phpstan-deprecation-rules from 0.11.1 to 0.11.2 (#107), by @dependabot-preview[bot]
FUNDING.yml (#95), by @localheinzlocalheinz/composer-normalize from 1.1.1 to 1.3.0 (#100), by @dependabot-preview[bot]localheinz/php-cs-fixer-config from 1.21.0 to 1.23.0 (#99), by @dependabot-preview[bot]phpunit/phpunit from 7.5.9 to 7.5.15 (#101), by @dependabot-preview[bot]nikic/php-parser:^4.2.3 (#102), by @localheinzlocalheinz/php-library-template (#104), by @localheinzphpstan/phpstan:~0.11.15 (#103), by @localheinzCHANGELOG.md (#105), by @localheinzFiles\DeclareStrictTypesRule (#79), by @dmeckephpstan/phpstan-deprecation-rules from 0.11.1 to 0.11.2 (#107), by @dependabot-preview[bot]infection/infection from 0.12.2 to 0.13.6 (#108), by @dependabot-preview[bot]Expressions\NoEmptyRule (#110), by @localheinzisset() (#111), by @localheinzExpressions\NoEvalRule (#112), by @localheinzExpressions\NoErrorSuppressionRule (#113), by @localheinzCHANGELOG.md (#114), by @localheinzExpressions\NoCompactRule (#116), by @localheinzStatements\NoSwitchRule (#117), by @localheinzlocalheinz/composer-normalize from 1.3.0 to 1.3.1 (#118), by @dependabot-preview[bot]For a full diff see [0.10.0...0.11.0][0.10.0...0.11.0].
Files\DeclareStrictTypesRule, which reports an error when a PHP file does not have a declare(strict_types=1) declaration ([#79]), by [@dmecke]Expressions\NoEmptyRule, which reports an error when the language construct empty() is used ([#110]), by [@localheinz]Expressions\NoEvalRule, which reports an error when the language construct eval() is used ([#112]), by [@localheinz]Expressions\NoErrorSuppressionRule, which reports an error when @ is used to suppress errors ([#113]), by [@localheinz]Expressions\NoCompactRule, which reports an error when the function compact() is used ([#116]), by [@localheinz]Statements\NoSwitchRule, which reports an error when the statement switch() is used ([#117]), by [@localheinz]nikic/php-parser:^4.2.3 ([#102]), by [@localheinz]phpstan/phpstan:~0.11.15 ([#103]), by [@localheinz]Fix: Replace Generator return type declaration with less specific iterable (#92), by @localheinz
Generator return type declaration with less specific iterable (#92), by @localheinzphpstan/phpstan:~0.11.7 (#91), by @localheinzparametersSchema configuration (#93), by @localheinzFor a full diff see [0.9.1...0.10.0][0.9.1...0.10.0].
phpstan/phpstan:~0.11.7 ([#91]), by [@localheinz]parametersSchema configuration to rules.neon, which is required for use with bleedingEdge.neon, see phpstan/phpstan@54a125d ([#93]), by [@localheinz]Enhancement: Allow usage with phpstan/extension-installer (#89), by @localheinz
phpstan/extension-installer (#89), by @localheinzFor a full diff see [0.9.0...0.9.1][0.9.0...0.9.1].
phpstan/extension-installer ([#89]), by [@localheinz]Enhancement: Adjust Classes\FinalRule to ignore Doctrine entities (#84), by @localheinz
Classes\FinalRule to ignore Doctrine entities (#84), by @localheinzlocalheinz/php-cs-fixer-config (#85), by @localheinzinfection/infection (#86), by @localheinzphpunit/phpunit (#87), by @localheinzFor a full diff see [0.8.1...0.9.0][0.8.1...0.9.0].
Classes\FinalRule to ignore Doctrine entities when they are annotated ([#84]), by [@localheinz]Enhancement: Update localheinz/php-cs-fixer-config (#82), by @localheinz
localheinz/php-cs-fixer-config (#82), by @localheinzExpressions\NoIssetRule (#83), by @localheinzFor a full diff see [0.8.0...0.8.1][0.8.0...0.8.1].
Expressions\NoIssetRule ([#83]), by [@localheinz]Fix phpstan/phpstan-deprecation-rules link (#76), by @WyriHaximus
infection/infection (#74), by @localheinztestTestsAnalysisSucceeds (#75), by @hpatoiophpstan/phpstan-deprecation-rules link (#76), by @WyriHaximusExpressions\NoIssetRule (#81), by @localheinzFor a full diff see [0.7.1...0.8.0][0.7.1...0.8.0].
Expressions\NoIssetRule, which reports an error when the language construct isset() is used ([#81]), by [@localheinz]Fix: Changelog (#72), by @localheinz
Classes\NoExtendsRule to allow to extend from a set of classes by default (#73), by @localheinzFor a full diff see [0.7.0...0.7.1][0.7.0...0.7.1].
Classes\NoExtendsRule to allow a set of default classes to be extended ([#73]), by [@localheinz]Enhancement: Synchronize project tooling configuration with localheinz/repository (#67), by @localheinz
localheinz/repository (#67), by @localheinzinfection/infection (#69), by @localheinzlocalheinz/composer-normalize (#70), by @localheinzClasses\NoExtendsRule (#68), by @localheinzREADME.md (#71), by @localheinzFor a full diff see [0.6.0...0.7.0][0.6.0...0.7.0].
Classes\NoExtendsRule, which reports an error when a class extends a class that is not allowed to be extended ([#68]), by [@localheinz]Enhancement: Add PHP 7.3 to Travis CI build matrix (#58), by @localheinz
infection/infection (#59), by @localheinzinfection/infection (#60), by @localheinzlocalheinz/repository (#50), by @localheinzphpunit/phpunit (#61), by @localheinzlocalheinz/composer-normalize (#63), by @localheinzlocalheinz/repository (#62), by @localheinzlocalheinz/php-cs-fixer-config (#64), by @localheinzphpstan/phpstan:~0.11.0 (#65), by @localheinzphpunit/phpunit (#66), by @localheinzFor a full diff see [0.5.0...0.6.0][0.5.0...0.6.0].
phpstan/phpstan:~0.11.0 ([#65]), by [@localheinz]Enhancement: Require phpstan/phpstan-deprecation-rules (#55), by @localheinz
infection/infection (#43), by @localheinzrules.neon (#44), by @localheinzNoConstructorParameterWithDefaultValueRule (#45), by @localheinzREADME.md in regard to AbstractOrFinalRule and FinalRule (#46), by @localheinzphpstan.neon instead of --level option (#47), by @localheinzphpunit/phpunit (#48), by @localheinzphpstan against tests (#49), by @localheinzAbstractOrFinalRule into FinalRule (#51), by @localheinzabstract or final (#52), by @localheinzClasses\FinalRule (#53), by @localheinzREADME.md (#54), by @localheinzphpstan/phpstan-deprecation-rules (#55), by @localheinzREADME.md (#56), by @localheinzFor a full diff see [0.4.0...0.5.0][0.4.0...0.5.0].
Methods\NoConstructorParameterWithDefaultValueRule, which reports an error when a constructor of an anonymous class or a class has a parameter with a default value ([#45]), by [@localheinz]$allowAbstractClasses and $classesNotRequiredToBeAbstractOrFinal to allow configuration of ClassesFinalRule` ([#51]), by [@localheinz]Classes\AbstractOrFinalRule after merging behaviour into Classes\FinalRule ([#51]), by [@localheinz]Classes\FinalRule ([#53]), by [@localheinz]Enhancement: Update localheinz/php-cs-fixer-config (#38), by @localheinz
localheinz/php-cs-fixer-config (#38), by @localheinzCHANGELOG.md (#40), by @localheinzFor a full diff see [0.3.0...0.4.0][0.3.0...0.4.0]
phpstan/phstan ([#39]), by [@localheinz]phpstan/phstan ([#42]), by [@localheinz]Fix: Links (#13), by @localheinz
NoNullableReturnTypeDeclarationRule (#15), by @localheinzlocalheinz/composer-normalize (#17), by @localheinzlocalheinz/php-cs-fixer-config (#20), by @localheinzphp-cs-fixer configuration for fixtures (#21), by @localheinzphpstan-extreme-rules as keyword (#27), by @localheinzClosures\NoNullableReturnTypeDeclarationRule (#29), by @localheinzClosures\NoParameterWithNullDefaultValueRule (#26), by @localheinzFunctions\NoParameterWithNullDefaultValueRule (#31), by @localheinzMethods\NoParameterWithNullDefaultValueRule (#32), by @localheinzClosures\NoParameterWithNullableTypeDeclarationRule (#33), by @localheinzFunctions\NoParameterWithNullableTypeDeclarationRule (#34), by @localheinzMethods\NoParameterWithNullableTypeDeclarationRule (#35), by @localheinzrules.neon (#37), by @localheinzFor a full diff see [0.2.0...0.3.0][0.2.0...0.3.0]
Functions\NoNullableReturnTypeDeclarationRule, which reports an error when a function has a nullable return type declaration, and Methods\NoNullableReturnTypeDeclarationRule, which reports an error when a method declared in an anonymous class, a class, or an interface has a nullable return type declaration ([#16]), by [@localheinz]Closures\NoParameterWithNullDefaultValueRule, which reports an error when a closure has a parameter with null as default value ([#26]), by [@localheinz]Closures\NoNullableReturnTypeDeclarationRule, which reports an error when a closure has a nullable return type declaration ([#29]), by [@localheinz]Functions\NoParameterWithNullDefaultValueRule, which reports an error when a function has a parameter with null as default value ([#31]), by [@localheinz]Methods\NoParameterWithNullDefaultValueRule, which reports an error when a method declared in an anonymous class, a class, or an interface has a parameter with null as default value ([#32]), by [@localheinz]Closures\NoParameterWithNullableTypeDeclarationRule, which reports an error when a closure has a parameter with a nullable type declaration ([#33]), by [@localheinz]Functions\NoParameterWithNullableTypeDeclarationRule, which reports an error when a function has a parameter with a nullable type declaration ([#34]), by [@localheinz]Methods\NoParameterWithNullableTypeDeclarationRule, which reports an error when a method declared in an anonymous class, a class, or an interface has a parameter with a nullable type declaration ([#35]), by [@localheinz]rules.neon, so you can easily enable all rules by including it in your phpstan.neon ([#37]), by [@localheinz]Fix: Class name in README.md (#3), by @localheinz
README.md (#3), by @localheinzFinalRule (#4), by @localheinzabstract or final (#5), by @localheinzlocalheinz/php-cs-fixer-config (#12), by @localheinzFor a full diff see [0.1.0...0.2.0][0.1.0...0.2.0]
Classes\FinalRule, which reports an error when a non-anonymous class is not final, ([#4]), by [@localheinz]$excludeClassNames argument to the constructors of Classes\AbstractOrFinalRule and Classes\FinalRule to allow whitelisting of classes, ([#11]), by [@localheinz]Fix: Update infection/infection (#2), by @localheinz
infection/infection (#2), by @localheinzAbstractOrFinalRule (#1), by @localheinzFor a full diff see 362c7ea...0.1.0.
Classes\AbstractOrFinalRule, which reports an error when a non-anonymous class is neither abstract nor final, (#1), by @localheinzOne column per quarter.