ergebnis/phpstan-rules
Provides rules for phpstan/phpstan.
2.13.1
11M downloads/mo
#988 most downloaded on Packagist
ergebnis/phpstan-rules
What this package is like to depend on
Last release 6 months ago
27 Jan 2026
Release timing varies
gaps range from 8 days to 9 months
Nearly every release is documented
notes for 51 of 51 stable releases
Nothing withdrawn
no release was ever pulled
8 years old
51 releases · first in 2018
3 releases in the last 12 months
see the full history below
Release timeline
51 releases · Nov 2018 to Jan 2026Releases
latest 51-
2.13.127 Jan 2026Release notes
Open source →What's Changed
- Fix: Traverse all nodes in
Files\NoPhpStanIgnoreRuleby @localheinz in #1011
Full Changelog: 2.13.0...2.13.1
Release notes
Open source →For a full diff see [
2.13.0...2.13.1][2.13.0...2.13.1].Fixed
- Adjusted
Files\NoPhpstanIgnoreRuleto traverse into all nodes ([#1011]), by [@localheinz]
- Fix: Traverse all nodes in
-
2.13.027 Jan 2026Release notes
Open source →What's Changed
- github-actions(deps): Bump codecov/codecov-action from 5.5.0 to 5.5.1 by @dependabot[bot] in #978
- composer(deps-dev): Bump ergebnis/composer-normalize from 2.47.0 to 2.48.2 by @dependabot[bot] in #979
- github-actions(deps): Bump ergebnis/.github from 1.9.3 to 1.10.0 by @dependabot[bot] in #980
- composer(deps-dev): Bump phpstan/phpstan-strict-rules from 2.0.6 to 2.0.7 by @dependabot[bot] in #983
- github-actions(deps): Bump actions/cache from 4.2.4 to 4.3.0 by @dependabot[bot] in #984
- composer(deps-dev): Bump ergebnis/license from 2.6.0 to 2.7.0 by @dependabot[bot] in #981
- composer(deps-dev): Bump ergebnis/php-cs-fixer-config from 6.54.0 to 6.55.0 by @dependabot[bot] in #985
- github-actions(deps): Bump stefanzweifel/git-auto-commit-action from 6.0.1 to 7.0.0 by @dependabot[bot] in #986
- composer(deps-dev): Bump ergebnis/php-cs-fixer-config from 6.55.0 to 6.56.0 by @dependabot[bot] in #987
- composer(deps-dev): Bump phpstan/phpstan-phpunit from 2.0.7 to 2.0.8 by @dependabot[bot] in #988
- github-actions(deps): Bump actions/checkout from 5.0.0 to 6.0.0 by @dependabot[bot] in #989
- composer(deps-dev): Bump ergebnis/php-cs-fixer-config from 6.56.0 to 6.56.1 by @dependabot[bot] in #990
- github-actions(deps): Bump shivammathur/setup-php from 2.35.4 to 2.36.0 by @dependabot[bot] in #991
- composer(deps-dev): Bump ergebnis/php-cs-fixer-config from 6.56.1 to 6.57.0 by @dependabot[bot] in #992
- github-actions(deps): Bump actions/checkout from 6.0.0 to 6.0.1 by @dependabot[bot] in #994
- composer(deps-dev): Bump ergebnis/php-cs-fixer-config from 6.57.0 to 6.57.1 by @dependabot[bot] in #993
- composer(deps-dev): Bump phpstan/phpstan-phpunit from 2.0.8 to 2.0.10 by @dependabot[bot] in #995
- github-actions(deps): Bump actions/cache from 4.3.0 to 5.0.1 by @dependabot[bot] in #996
- github-actions(deps): Bump codecov/codecov-action from 5.5.1 to 5.5.2 by @dependabot[bot] in #998
- composer(deps-dev): Bump phpstan/phpstan-phpunit from 2.0.10 to 2.0.11 by @dependabot[bot] in #1000
- github-actions(deps): Bump stefanzweifel/git-auto-commit-action from 7.0.0 to 7.1.0 by @dependabot[bot] in #999
- composer(deps-dev): Bump ergebnis/php-cs-fixer-config from 6.57.1 to 6.58.1 by @dependabot[bot] in #1001
- github-actions(deps): Bump actions/cache from 5.0.1 to 5.0.2 by @dependabot[bot] in #1002
- github-actions(deps): Bump actions/checkout from 6.0.1 to 6.0.2 by @dependabot[bot] in #1003
- composer(deps-dev): Bump phpstan/phpstan-phpunit from 2.0.11 to 2.0.12 by @dependabot[bot] in #1004
- composer(deps-dev): Bump ergebnis/php-cs-fixer-config from 6.58.1 to 6.58.2 by @dependabot[bot] in #1005
- composer(deps-dev): Bump ergebnis/php-cs-fixer-config from 6.58.2 to 6.59.0 by @dependabot[bot] in #1007
- composer(deps-dev): Bump phpstan/phpstan-strict-rules from 2.0.7 to 2.0.8 by @dependabot[bot] in #1006
- composer(deps-dev): Bump ergebnis/composer-normalize from 2.48.2 to 2.49.0 by @dependabot[bot] in #1008
- Enhancement: Require
phpstan/phpstan:^2.1.35by @localheinz in #1010 - Enhancement: Implement
Files\NoPhpstanIgnoreRuleby @localheinz in #1009
Full Changelog: 2.12.0...2.13.0
Release notes
Open source →For a full diff see [
2.12.0...2.13.0][2.12.0...2.13.0].Added
- Added
Files\NoPhpstanIgnoreRule, which reports an error when a@phpstan-ignore,@phpstan-ignore-line, or@phpstan-ignore-next-linetag is used to suppress an error ([#1009]), by [@localheinz]
Changed
- Required
phpstan/phpstan:^2.1.35([#1010]), by [@localheinz]
-
2.12.007 Sep 2025Release notes
Open source →What's Changed
- github-actions(deps): Bump shivammathur/setup-php from 2.35.3 to 2.35.4 by @dependabot[bot] in #974
- github-actions(deps): Bump codecov/codecov-action from 5.4.3 to 5.5.0 by @dependabot[bot] in #975
- composer(deps-dev): Bump ergebnis/phpunit-slow-test-detector from 2.19.1 to 2.20.0 by @dependabot[bot] in #976
- composer(deps-dev): Bump ergebnis/php-cs-fixer-config from 6.52.0 to 6.53.0 by @dependabot[bot] in #973
- Enhancement: Add support for PHP 8.5 by @localheinz in #977
Full Changelog: 2.11.0...2.12.0
Release notes
Open source →For a full diff see [
2.11.0...2.12.0][2.11.0...2.12.0].Added
- Added support for PHP 8.5 ([#977]), by [@localheinz]
-
2.11.019 Aug 2025Release notes
Open source →What's Changed
- github-actions(deps): Bump shivammathur/setup-php from 2.34.1 to 2.35.2 by @dependabot[bot] in #963
- composer(deps-dev): Bump phpstan/phpstan-phpunit from 2.0.6 to 2.0.7 by @dependabot[bot] in #964
- github-actions(deps): Bump actions/checkout from 4.2.2 to 5.0.0 by @dependabot[bot] in #970
- github-actions(deps): Bump shivammathur/setup-php from 2.35.2 to 2.35.3 by @dependabot[bot] in #967
- composer(deps-dev): Bump phpstan/phpstan-strict-rules from 2.0.4 to 2.0.6 by @dependabot[bot] in #966
- github-actions(deps): Bump actions/cache from 4.2.3 to 4.2.4 by @dependabot[bot] in #969
- composer(deps-dev): Bump ergebnis/php-cs-fixer-config from 6.46.0 to 6.52.0 by @dependabot[bot] in #971
- Enhancement: Allow installation on PHP 8.5 by @localheinz in #972
Full Changelog: 2.10.5...2.11.0
Release notes
Open source →For a full diff see [
2.10.5...2.11.0][2.10.5...2.11.0].Changed
- Allowed installation on PHP 8.5 ([#972]), by [@localheinz]
-
2.10.523 Jun 2025Release notes
Open source →What's Changed
- Fix: Adjust
CallLikes\NoNamedArgumentRuleto handle calls to constructors of variable class names by @localheinz in #957 - Fix: Adjust
CallLikes\NoNamedArgumentRuleto describe known calls only by @localheinz in #958
Full Changelog: 2.10.4...2.10.5
Release notes
Open source →For a full diff see [
2.10.4...2.10.5][2.10.4...2.10.5].Fixed
- Adjusted
Methods\NoNamedArgumentRuleto handle calls to constructors of variable class names ([#957]), by [@localheinz] - Adjusted
Methods\NoNamedArgumentRuleto describe known calls only ([#958]), by [@localheinz]
- Fix: Adjust
-
2.10.407 Jun 2025Release notes
Open source →What's Changed
- Fix: Adjust
CallLikes\NoNamedArgumentRuleto handlestaticcalls on variable expressions by @localheinz in #947 - Fix: Simplify by @localheinz in #949
- Fix: Adjust
CallLikes\NoNamedArgumentRuleto handle calls on invokables by @localheinz in #948 - Fix: Adjust
CallLikes\NoNamedArgumentRuleto handle calls on callables assigned to properties by @localheinz in #950 - Fix: Adjust
CallLikes\NoNamedArgumentRuleto handle other calls with generic error message by @localheinz in #951
Full Changelog: 2.10.3...2.10.4
Release notes
Open source →For a full diff see [
2.10.3...2.10.4][2.10.3...2.10.4].Fixed
- Adjusted
Methods\NoNamedArgumentRuleto handle static calls on variable expressions ([#947]), by [@localheinz] - Adjusted
Methods\NoNamedArgumentRuleto handle calls on invokables ([#948]), by [@localheinz] - Adjusted
Methods\NoNamedArgumentRuleto handle calls on callables assigned to properties ([#949]), by [@localheinz] - Adjusted
Methods\NoNamedArgumentRuleto handle all other calls with generic error message ([#951]), by [@localheinz]
- Fix: Adjust
-
2.10.303 Jun 2025Release notes
Open source →What's Changed
- Fix: Ignore comments in
InvokeParentHookMethodRuleby @localheinz in #944
Full Changelog: 2.10.2...2.10.3
Release notes
Open source →For a full diff see [
2.10.2...2.10.3][2.10.2...2.10.3].Fixed
- Adjusted
Methods\InvokeParentHookMethodRuleto ignore comments ([#944]), by [@localheinz]
- Fix: Ignore comments in
-
2.10.202 Jun 2025Release notes
Open source →Release notes
Open source →For a full diff see [
2.10.1...2.10.2][2.10.1...2.10.2].Fixed
- Renamed error identifier for
Methods\InvokeParentHookMethodRule([#943]), by [@localheinz]
- Renamed error identifier for
-
2.10.102 Jun 2025Release notes
Open source →What's Changed
- Fix: Schema by @localheinz in #940
- Fix: Use
Invocation::never()by @localheinz in #941 - Fix: Disallow configuring
neverinvocation by @localheinz in #942
Full Changelog: 2.10.0...2.10.1
Release notes
Open source →For a full diff see [
2.10.0...2.10.1][2.10.0...2.10.1].Fixed
- Fixed schema for configuration of
Methods\InvokeParentHookMethodRule([#940]), by [@localheinz]
-
2.10.002 Jun 2025Release notes
Open source →What's Changed
- Enhancement: Implement
InvokeParentHookMethodRuleby @localheinz in #939
Full Changelog: 2.9.0...2.10.0
Release notes
Open source →For a full diff see [
2.9.0...2.10.0][2.9.0...2.10.0].Added
- Added
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]
- Enhancement: Implement
-
2.9.031 May 2025Release notes
Open source →For a full diff see [
2.8.0...2.9.0][2.8.0...2.9.0].Added
- Added
CallLikes\NoNamedArgumentRule, which reports an error when an anonymous function, a function, or a method is invoked using a named argument ([#914]), by [@localheinz]
Changed
- Required
phpstan/phpstan:^2.1.8([#938]), by [@localheinz]
- Added
-
2.8.018 Feb 2025Release notes
Open source →For a full diff see [
2.7.0...2.8.0][2.7.0...2.8.0].Added
- Added
allRulesparameter to allow disabling and enabling all rules ([#913]), by [@localheinz] - Added
Expressions\NoAssignByReferenceRule, which reports an error when a variable is assigned by reference ([#914]), by [@localheinz]
- Added
-
2.7.017 Feb 2025Release notes
Open source →For a full diff see [
2.6.1...2.7.0][2.6.1...2.7.0].Added
- Added
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] - Added
Functions\NoReturnByReferenceRuleandMethods\NoReturnByReferenceRule, which report an error when a function or a method returns by reference ([#912]), by [@localheinz]
- Added
-
2.6.116 Jan 2025Release notes
Open source →For a full diff see [
2.6.0...2.6.1][2.6.0...2.6.1].Fixed
- Adjusted
Methods\NoParameterWithNullableTypeDeclarationRuleto use the appropriate error identifier ([#902]), by [@manuelkiessling]
- Adjusted
-
2.6.008 Jan 2025Release notes
Open source →For a full diff see [
2.5.2...2.6.0][2.5.2...2.6.0].Added
- Added support for
phpstan/phpstan:^2.0.0([#873]), by [@localheinz]
- Added support for
-
2.5.208 Jan 2025Release notes
Open source →For a full diff see [
2.5.1...2.5.2][2.5.1...2.5.2].Fixed
- Adjusted
Closures\NoNullableReturnTypeDeclarationRule,Closures\NoParameterWithNullableTypeDeclarationRule,Functions\NoNullableReturnTypeDeclarationRule,Functions\NoParameterWithNullableTypeDeclarationRule,Methods\NoNullableReturnTypeDeclarationRule,Methods\NoParameterWithNullableTypeDeclarationRuleto detect cases wherenullis referenced with incorrect case or relative to the root namespace ([#897]), by [@localheinz]
- Adjusted
-
2.5.107 Jan 2025Release notes
Open source →For a full diff see [
2.5.0...2.5.1][2.5.0...2.5.1].Fixed
- Returned rule with error identifier ([#882]), by [@localheinz]
- Adjusted
Methods\FinalInAbstractClassRuleto ignore Doctrine embeddables and entities ([#396]), by [@localheinz] - Adjusted
Expressions\NoCompactRuleto detect usages ofcompact()with incorrect case ([#889]), by [@localheinz] - Adjusted
Methods\PrivateInFinalClassRuleto use more appropriate message when detecting aprotectedmethod in an anonymous class ([#890]), by [@localheinz] - Adjusted
Methods\PrivateInFinalClassRuleto ignoreprotectedmethods from traits ([#891]), by [@localheinz] - Adjusted
Methods\PrivateInFinalClassRuleto ignoreprotectedmethods withphpunit/phpunitattributes requiring methods to beprotected([#863]), by [@cosmastech] - Adjusted
Methods\PrivateInFinalClassRuleto ignoreprotectedmethods withphpunit/phpunitannotations requiring methods to beprotected([#895]), by [@cosmastech]
-
2.5.001 Dec 2024Release notes
Open source →For a full diff see [
2.4.0...2.5.0][2.4.0...2.5.0].Added
- Added rule error identifiers ([#875]), by [@localheinz]
- Added support for PHP 8.0 ([#877]), by [@localheinz]
- Added support for PHP 7.4 ([#880]), by [@localheinz]
Changed
- Removed dependency on
nikic/php-parser([#878]), by [@localheinz]
-
2.4.022 Nov 2024Release notes
Open source →For a full diff see [
2.3.0...2.4.0][2.3.0...2.4.0].Added
- Added support for PHP 8.4 ([#872]), by [@localheinz]
-
2.3.016 Nov 2024Release notes
Open source →For a full diff see [
2.2.0...2.3.0][2.2.0...2.3.0].Changed
- Allowed installation on PHP 8.4 ([#862]), by [@localheinz]
-
2.2.007 Feb 2024Release notes
Open source →For a full diff see [
2.1.0...2.2.0][2.1.0...2.2.0].Changed
- Allowed installation of
nikic/php-parser:^5.0.0([#735]), by [@localheinz]
- Allowed installation of
-
2.1.017 Aug 2023Release notes
Open source →For a full diff see [
2.0.0...2.1.0][2.0.0...2.1.0].Changed
- Dropped support for PHP 8.0 ([#567]), by [@localheinz]
- Added support for PHP 8.3 ([#604]), by [@nunomaduro]
-
2.0.001 May 2023Release notes
Open source →For a full diff see [
1.0.0...2.0.0][1.0.0...2.0.0].Added
- Added
methodsAllowedToUseContainerTypeDeclarationsparameter to allow configuring a list of method names that are allowed to have container parameter type declarations ([#541), by [@localheinz] - Allowed disabling rules ([#542), by [@localheinz]
- Added support for nullable union types ([#543), by [@localheinz]
Changed
- Dropped support for PHP 7.2 ([#496]), by [@localheinz]
- Dropped support for PHP 7.3 ([#498]), by [@localheinz]
- Dropped support for PHP 7.4 ([#499]), by [@localheinz]
- Added support for PHP 8.2 ([#540]), by [@localheinz]
Removed
- Removed
Expressions\NoEmptyRule([#525]), by [@enumag]
- Added
-
1.0.008 Nov 2021Release notes
Open source →For a full diff see [
0.15.3...1.0.0][0.15.3...1.0.0].Changed
- Added support for
phpstan/phpstan:^1.0.0and dropped support for non-stable versions ofphpstan/phpstan([#381]), by [@rpkamp]
Fixed
- Adjusted
Classes\FinalRuleto not report an error when a non-final class has aDoctrinbe\ORM\Mapping\Entityattribute ([#395]), by [@localheinz]
- Added support for
-
0.15.330 Oct 2020Release notes
Open source →For a full diff see [
0.15.2...0.15.3][0.15.2...0.15.3].Changed
- Allow installation with PHP 8.0 ([#294]), by [@localheinz]
-
0.15.229 Aug 2020Release notes
Open source →For a full diff see [
0.15.1...0.15.2][0.15.1...0.15.2].Changed
- Dropped support for PHP 7.1 ([#259]), by [@localheinz]
-
0.15.131 Jul 2020Release notes
Open source →For a full diff see [
0.15.0...0.15.1][0.15.0...0.15.1].Changed
- Adjusted
Methods\FinalInAbstractClassrule to allow non-finalpublicconstructors in abstract classes ([#248]), by [@Slamdunk]
- Adjusted
-
0.15.010 May 2020Release notes
Open source →For a full diff see [
0.14.4...0.15.0][0.14.4...0.15.0].Added
- Added
Classes\PHPUnit\Framework\TestCaseWithSuffixRule, which reports an error when a concrete class extendingPHPUnit\Framework\TestCasedoes not have aTestsuffix ([#225]), by [@localheinz]
- Added
-
0.14.413 Mar 2020Release notes
Open source →For a full diff see [
0.14.3...0.14.4][0.14.3...0.14.4].Fixed
- Ignored classes with
@ORM\Mapping\Entityannotations inFinalRule([#202]), by [@localheinz]
- Ignored classes with
-
0.14.328 Jan 2020Release notes
Open source →For a full diff see [
0.14.2...0.14.3][0.14.2...0.14.3].Fixed
- Ignored first line in
DeclareStrictTypesRulewhen it is a shebang ([#186]), by [@Great-Antique]
- Ignored first line in
-
0.14.219 Dec 2019Release notes
Open source →For a full diff see [
0.14.1...0.14.2][0.14.1...0.14.2].Fixed
- Brought back support for PHP 7.1 ([#166]), by [@localheinz]
-
0.14.115 Dec 2019Release notes
Open source →For a full diff see [
0.14.0...0.14.1][0.14.0...0.14.1].Fixed
- Removed an inappropriate
replaceconfiguration fromcomposer.json([#161]), by [@localheinz]
- Removed an inappropriate
-
0.14.009 Dec 2019Release notes
Open source →For a full diff see [
0.13.0...0.14.0][0.13.0...0.14.0].Changed
-
Allowed installation of
phpstan/phpstan:~0.12.0([#147]), by [@localheinz] -
Renamed vendor namespace
LocalheinztoErgebnisafter move to [@ergebnis] ([#157]), by [@localheinz]Run
composer remove localheinz/phpstan-rulesand
composer require ergebnis/phpstan-rulesto update.
Run
find . -type f -exec sed -i '.bak' 's/Localheinz\\PHPStan/Ergebnis\\PHPStan/g' {} \;to replace occurrences of
Localheinz\PHPStanwithErgebnis\PHPStan.Run
find -type f -name '*.bak' -deleteto delete backup files created in the previous step.
-
Moved parameters into
ergebnissection to prevent conflicts with global parameters ([#158]), by [@localheinz]Where previously
phpstan.neonlooked like the followingparameters: allowAbstractClasses: true classesAllowedToBeExtended: [] classesNotRequiredToBeAbstractOrFinal: [] interfacesImplementedByContainers: - Psr\Container\ContainerInterfacethese parameters now need to be moved into an
ergebnissection:parameters: - allowAbstractClasses: true - classesAllowedToBeExtended: [] - classesNotRequiredToBeAbstractOrFinal: [] - interfacesImplementedByContainers: - - Psr\Container\ContainerInterface + ergebnis: + allowAbstractClasses: true + classesAllowedToBeExtended: [] + classesNotRequiredToBeAbstractOrFinal: [] + interfacesImplementedByContainers: + - Psr\Container\ContainerInterface
Fixed
- Dropped support for PHP 7.1 ([#141]), by [@localheinz]
-
-
0.13.015 Oct 2019Release notes
Open source →For a full diff see [
0.12.2...0.13.0][0.12.2...0.13.0].Added
- Added
Methods\PrivateInFinalClassRulewhich reports an error when a method in afinalclass isprotectedwhen it could beprivate([#126]), by [@localheinz]
- Added
-
0.12.216 Sep 2019Release notes
Open source →For a full diff see [
0.12.1...0.12.2][0.12.1...0.12.2].Fixed
- Started ignoring interfaces from analysis by
Methods\FinalInAbstractClassRuleto avoid inappropriate errors ([#132]), by [@localheinz]
- Started ignoring interfaces from analysis by
-
0.12.115 Sep 2019Release notes
Open source →For a full diff see [
0.12.0...0.12.1][0.12.0...0.12.1].Fixed
- Started resolving class name in type declaration before attempting to analyze it in the
Methods\NoParameterWithContainerTypeDeclarationRuleto avoid errors where classselfis not found ([#128]), by [@localheinz]
- Started resolving class name in type declaration before attempting to analyze it in the
-
0.12.013 Sep 2019Release notes
Open source →For a full diff see [
0.11.0...0.12.0][0.11.0...0.12.0].Added
- Added
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] - Added
Methods\FinalInAbstractClassRule, which reports an error when a concretepublicorprotectedmethod in anabstractclass is notfinal([#123]), by [@localheinz]
- Added
-
0.11.007 Sep 2019Release notes
Open source →For a full diff see [
0.10.0...0.11.0][0.10.0...0.11.0].Added
- Added
Files\DeclareStrictTypesRule, which reports an error when a PHP file does not have adeclare(strict_types=1)declaration ([#79] - Added
Expressions\NoEmptyRule, which reports an error when the language constructempty()is used ([#110]), by [@localheinz] - Added
Expressions\NoEvalRule, which reports an error when the language constructeval()is used ([#112]), by [@localheinz] - Added
Expressions\NoErrorSuppressionRule, which reports an error when@is used to suppress errors ([#113]), by [@localheinz] - Added
Expressions\NoCompactRule, which reports an error when the functioncompact()is used ([#116]), by [@localheinz] - Added
Statements\NoSwitchRule, which reports an error when the statementswitch()is used ([#117]), by [@localheinz]
Changed
- Require at least
nikic/php-parser:^4.2.3([#102]), by [@localheinz] - Require at least
phpstan/phpstan:~0.11.15([#103]), by [@localheinz]
- Added
-
0.10.022 May 2019Release notes
Open source →For a full diff see [
0.9.1...0.10.0][0.9.1...0.10.0].Changed
- Require at least
phpstan/phpstan:~0.11.7([#91]), by [@localheinz]
Fixed
- Added missing
parametersSchemaconfiguration torules.neon, which is required for use withbleedingEdge.neon, seephpstan/phpstan@54a125d([#93]), by [@localheinz]
- Require at least
-
0.9.120 May 2019Release notes
Open source →For a full diff see [
0.9.0...0.9.1][0.9.0...0.9.1].Changed
- Allow usage with
phpstan/extension-installer([#89]), by [@localheinz]
- Allow usage with
-
0.9.007 May 2019Release notes
Open source →For a full diff see [
0.8.1...0.9.0][0.8.1...0.9.0].Changed
- Adjusted
Classes\FinalRuleto ignore Doctrine entities when they are annotated ([#84]), by [@localheinz]
- Adjusted
-
0.8.102 May 2019Release notes
Open source →For a full diff see [
0.8.0...0.8.1][0.8.0...0.8.1].Fixed
- Actually enable
Expressions\NoIssetRule([#83]), by [@localheinz]
- Actually enable
-
0.8.002 May 2019Release notes
Open source →For a full diff see [
0.7.1...0.8.0][0.7.1...0.8.0].Added
- Added
Expressions\NoIssetRule, which reports an error when the language constructisset()is used ([#81]), by [@localheinz]
- Added
-
0.7.117 Jan 2019Release notes
Open source →For a full diff see [
0.7.0...0.7.1][0.7.0...0.7.1].Changed
- Configured
Classes\NoExtendsRuleto allow a set of default classes to be extended ([#73]), by [@localheinz]
- Configured
-
0.7.017 Jan 2019Release notes
Open source →For a full diff see [
0.6.0...0.7.0][0.6.0...0.7.0].Added
- Added
Classes\NoExtendsRule, which reports an error when a class extends a class that is not allowed to be extended ([#68]), by [@localheinz]
- Added
-
0.6.016 Jan 2019Release notes
Open source →For a full diff see [
0.5.0...0.6.0][0.5.0...0.6.0].Added
- Allow installation with
phpstan/phpstan:~0.11.0([#65]), by [@localheinz]
- Allow installation with
-
0.5.005 Dec 2018Release notes
Open source →For a full diff see [
0.4.0...0.5.0][0.4.0...0.5.0].Added
- Added
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] - Added parameters
$allowAbstractClassesand$classesNotRequiredToBeAbstractOrFinalto allow configuration ofClassesFinalRule` ([#51]), by [@localheinz]
Removed
- Removed
Classes\AbstractOrFinalRuleafter merging behaviour intoClasses\FinalRule([#51]), by [@localheinz] - Removed default values from constructor of
Classes\FinalRule([#53]), by [@localheinz]
- Added
-
0.4.003 Dec 2018Release notes
Open source →For a full diff see [
0.3.0...0.4.0][0.3.0...0.4.0]Changed
- Removed double-quotes from error messages to be more consistent with error messages generated by
phpstan/phstan([#39]), by [@localheinz] - Modified wording and placement of method, function, and parameter names in error messages to be more consistent with error messages generated by
phpstan/phstan([#42]), by [@localheinz]
- Removed double-quotes from error messages to be more consistent with error messages generated by
-
0.3.025 Nov 2018Release notes
Open source →For a full diff see [
0.2.0...0.3.0][0.2.0...0.3.0]Added
- Added
Functions\NoNullableReturnTypeDeclarationRule, which reports an error when a function has a nullable return type declaration, andMethods\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] - Added
Closures\NoParameterWithNullDefaultValueRule, which reports an error when a closure has a parameter withnullas default value ([#26]), by [@localheinz] - Added
Closures\NoNullableReturnTypeDeclarationRule, which reports an error when a closure has a nullable return type declaration ([#29]), by [@localheinz] - Added
Functions\NoParameterWithNullDefaultValueRule, which reports an error when a function has a parameter withnullas default value ([#31]), by [@localheinz] - Added
Methods\NoParameterWithNullDefaultValueRule, which reports an error when a method declared in an anonymous class, a class, or an interface has a parameter withnullas default value ([#32]), by [@localheinz] - Added
Closures\NoParameterWithNullableTypeDeclarationRule, which reports an error when a closure has a parameter with a nullable type declaration ([#33]), by [@localheinz] - Added
Functions\NoParameterWithNullableTypeDeclarationRule, which reports an error when a function has a parameter with a nullable type declaration ([#34]), by [@localheinz] - Added
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] - Extracted
rules.neon, so you can easily enable all rules by including it in yourphpstan.neon([#37]), by [@localheinz]
- Added
-
0.2.015 Nov 2018Release notes
Open source →For a full diff see [
0.1.0...0.2.0][0.1.0...0.2.0]Added
- Added
Classes\FinalRule, which reports an error when a non-anonymous class is notfinal, ([#4]), by [@localheinz]
Changed
- Added an
$excludeClassNamesargument to the constructors ofClasses\AbstractOrFinalRuleandClasses\FinalRuleto allow whitelisting of classes, ([#11]), by [@localheinz]
- Added
-
0.1.013 Nov 2018Release notes
Open source →For a full diff see
362c7ea...0.1.0.Added
- Added
Classes\AbstractOrFinalRule, which reports an error when a non-anonymous class is neitherabstractnorfinal, (#1), by @localheinz
- Added