---
title: "phpstan/phpstan-strict-rules 2.0.0 Breaking Changes"
description: "What each phpstan/phpstan-strict-rules release removed, renamed or changed: 13 breaking changes in 1 version on Packagist, each with its source."
canonical_url: https://since.dev/packages/packagist/phpstan/phpstan-strict-rules
last_updated: 2026-12-04
---

# 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

Latest version `2.1.3`, released December 3, 2026. MIT license. [Source repository](https://github.com/phpstan/phpstan-strict-rules)

Its 2.0.0 release drops PHP 7.2 and 7.3. [PHP end of life dates](https://since.dev/calendar/php.md).

## phpstan/phpstan-strict-rules 2.0.0 breaking changes

phpstan/phpstan-strict-rules 2.0.0, released November 11, 2024: 13 breaking changes.

- **Removed**  

Support for PHP 7.2 and 7.3 is no longer tested, and the minimum PHP version was raised. [github.com](https://github.com/phpstan/phpstan-strict-rules/releases/tag/2.0.0)
- **Removed**  

Options that PHPStan 2.0 removed are also removed from this package, so configuration that sets them must be cleaned up. [github.com](https://github.com/phpstan/phpstan-strict-rules/releases/tag/2.0.0)
- **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](https://github.com/phpstan/phpstan-strict-rules/releases/tag/2.0.0)
- **Configuration changed**  

All Bleeding Edge rules are now enabled, so users may see new reported errors after upgrading. [github.com](https://github.com/phpstan/phpstan-strict-rules/releases/tag/2.0.0)
- **Signature changed** `PHPStan\Rules\BooleansInConditions\BooleanInBooleanAndRule::__construct`  

Was public function \_\_construct(BooleanRuleHelper $helper, bool $bleedingEdge); now public function \_\_construct(BooleanRuleHelper $helper). [packagist.org](https://packagist.org/packages/phpstan/phpstan-strict-rules#2.0.0)
- **Signature changed** `PHPStan\Rules\BooleansInConditions\BooleanInBooleanOrRule::__construct`  

Was public function \_\_construct(BooleanRuleHelper $helper, bool $bleedingEdge); now public function \_\_construct(BooleanRuleHelper $helper). [packagist.org](https://packagist.org/packages/phpstan/phpstan-strict-rules#2.0.0)
- **Signature changed** `PHPStan\Rules\Operators\OperandsInArithmeticAdditionRule::__construct`  

Was public function \_\_construct(OperatorRuleHelper $helper, bool $bleedingEdge); now public function \_\_construct(OperatorRuleHelper $helper). [packagist.org](https://packagist.org/packages/phpstan/phpstan-strict-rules#2.0.0)
- **Signature changed** `PHPStan\Rules\Operators\OperandsInArithmeticDivisionRule::__construct`  

Was public function \_\_construct(OperatorRuleHelper $helper, bool $bleedingEdge); now public function \_\_construct(OperatorRuleHelper $helper). [packagist.org](https://packagist.org/packages/phpstan/phpstan-strict-rules#2.0.0)
- **Signature changed** `PHPStan\Rules\Operators\OperandsInArithmeticExponentiationRule::__construct`  

Was public function \_\_construct(OperatorRuleHelper $helper, bool $bleedingEdge); now public function \_\_construct(OperatorRuleHelper $helper). [packagist.org](https://packagist.org/packages/phpstan/phpstan-strict-rules#2.0.0)
- **Signature changed** `PHPStan\Rules\Operators\OperandsInArithmeticModuloRule::__construct`  

Was public function \_\_construct(OperatorRuleHelper $helper, bool $bleedingEdge); now public function \_\_construct(OperatorRuleHelper $helper). [packagist.org](https://packagist.org/packages/phpstan/phpstan-strict-rules#2.0.0)
- **Signature changed** `PHPStan\Rules\Operators\OperandsInArithmeticMultiplicationRule::__construct`  

Was public function \_\_construct(OperatorRuleHelper $helper, bool $bleedingEdge); now public function \_\_construct(OperatorRuleHelper $helper). [packagist.org](https://packagist.org/packages/phpstan/phpstan-strict-rules#2.0.0)
- **Signature changed** `PHPStan\Rules\Operators\OperandsInArithmeticSubtractionRule::__construct`  

Was public function \_\_construct(OperatorRuleHelper $helper, bool $bleedingEdge); now public function \_\_construct(OperatorRuleHelper $helper). [packagist.org](https://packagist.org/packages/phpstan/phpstan-strict-rules#2.0.0)
- **Signature changed** `PHPStan\Rules\SwitchConditions\MatchingTypeInSwitchCaseConditionRule::__construct`  

Was public function \_\_construct(Standard $printer); now public function \_\_construct(Printer $printer). [packagist.org](https://packagist.org/packages/phpstan/phpstan-strict-rules#2.0.0)

## Related packages

- [phpstan/phpstan](https://since.dev/packages/packagist/phpstan/phpstan.md)
- [phpstan/phpstan-doctrine](https://since.dev/packages/packagist/phpstan/phpstan-doctrine.md)
- [phpstan/phpstan-nette](https://since.dev/packages/packagist/phpstan/phpstan-nette.md)
- [phpstan/phpstan-symfony](https://since.dev/packages/packagist/phpstan/phpstan-symfony.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
