phpstan/phpstan-strict-rules breaking changes
phpstan/phpstan-strict-rules 2.0.0 (November 11, 2024) is its newest release with breaking changes, 13 of them. The first: phpstan/phpstan-strict-rules 2.0.0 drops support for PHP 7.2 and 7.3. Every breaking API change we have recorded in phpstan/phpstan-strict-rules on Packagist: 13 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 2.1.3, released December 3, 2026. MIT license. Source repository
Its 2.0.0 release drops PHP 7.2 and 7.3. PHP end of life dates.
phpstan/phpstan-strict-rules 2.0.0 breaking changes
- Removed
Support for PHP 7.2 and 7.3 is no longer tested, and the minimum PHP version was raised. github.com - Removed
Options that PHPStan 2.0 removed are also removed from this package, so configuration that sets them must be cleaned up. github.com - Default changed
polluteScopeWithBlock
The polluteScopeWithBlock setting now defaults to false, so code relying on variables leaking out of blocks may be flagged differently. github.com - Configuration changed
All Bleeding Edge rules are now enabled, so users may see new reported errors after upgrading. github.com - Signature changed
PHPStan\Rules\BooleansInConditions\BooleanInBooleanAndRule::__construct
Was public function __construct(BooleanRuleHelper $helper, bool $bleedingEdge); now public function __construct(BooleanRuleHelper $helper). packagist.org - Signature changed
PHPStan\Rules\BooleansInConditions\BooleanInBooleanOrRule::__construct
Was public function __construct(BooleanRuleHelper $helper, bool $bleedingEdge); now public function __construct(BooleanRuleHelper $helper). packagist.org - Signature changed
PHPStan\Rules\Operators\OperandsInArithmeticAdditionRule::__construct
Was public function __construct(OperatorRuleHelper $helper, bool $bleedingEdge); now public function __construct(OperatorRuleHelper $helper). packagist.org - Signature changed
PHPStan\Rules\Operators\OperandsInArithmeticDivisionRule::__construct
Was public function __construct(OperatorRuleHelper $helper, bool $bleedingEdge); now public function __construct(OperatorRuleHelper $helper). packagist.org - Signature changed
PHPStan\Rules\Operators\OperandsInArithmeticExponentiationRule::__construct
Was public function __construct(OperatorRuleHelper $helper, bool $bleedingEdge); now public function __construct(OperatorRuleHelper $helper). packagist.org - Signature changed
PHPStan\Rules\Operators\OperandsInArithmeticModuloRule::__construct
Was public function __construct(OperatorRuleHelper $helper, bool $bleedingEdge); now public function __construct(OperatorRuleHelper $helper). packagist.org - Signature changed
PHPStan\Rules\Operators\OperandsInArithmeticMultiplicationRule::__construct
Was public function __construct(OperatorRuleHelper $helper, bool $bleedingEdge); now public function __construct(OperatorRuleHelper $helper). packagist.org - Signature changed
PHPStan\Rules\Operators\OperandsInArithmeticSubtractionRule::__construct
Was public function __construct(OperatorRuleHelper $helper, bool $bleedingEdge); now public function __construct(OperatorRuleHelper $helper). packagist.org - Signature changed
PHPStan\Rules\SwitchConditions\MatchingTypeInSwitchCaseConditionRule::__construct
Was public function __construct(Standard $printer); now public function __construct(Printer $printer). packagist.org
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.