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

# phpstan/phpstan-symfony breaking changes

phpstan/phpstan-symfony 2.0.0 (November 11, 2024) is its newest release with breaking changes, 23 of them. The first: Removes legacy config options that have an underscore in their name in phpstan/phpstan-symfony 2.0.0. Every breaking API change we have recorded in phpstan/phpstan-symfony on Packagist: 23 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 November 29, 2026. MIT license. [Source repository](https://github.com/phpstan/phpstan-symfony)

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-symfony 2.0.0 breaking changes

phpstan/phpstan-symfony 2.0.0, released November 11, 2024: 23 breaking changes.

- **Removed**  

Config options with an underscore in their name were removed as a backward compatibility break. Rename those options in your configuration to the current names. [github.com](https://github.com/phpstan/phpstan-symfony/releases/tag/2.0.0)
- **Removed**  

The package no longer tests on PHP 7.2 and 7.3, so those PHP versions are no longer supported. Upgrade PHP before using this release. [github.com](https://github.com/phpstan/phpstan-symfony/releases/tag/2.0.0)
- **Removed** `PHPStan\Symfony\MessageMap`  

PHPStan\\Symfony\\MessageMap was removed in phpstan/phpstan-symfony 2.0.0 [packagist.org](https://packagist.org/packages/phpstan/phpstan-symfony#2.0.0)
- **Removed** `PHPStan\Symfony\MessageMapFactory`  

PHPStan\\Symfony\\MessageMapFactory was removed in phpstan/phpstan-symfony 2.0.0 [packagist.org](https://packagist.org/packages/phpstan/phpstan-symfony#2.0.0)
- **Removed** `PHPStan\Symfony\ServiceDefinition::getTags`  

PHPStan\\Symfony\\ServiceDefinition::getTags was removed in phpstan/phpstan-symfony 2.0.0 [packagist.org](https://packagist.org/packages/phpstan/phpstan-symfony#2.0.0)
- **Removed** `PHPStan\Symfony\ServiceTag`  

PHPStan\\Symfony\\ServiceTag was removed in phpstan/phpstan-symfony 2.0.0 [packagist.org](https://packagist.org/packages/phpstan/phpstan-symfony#2.0.0)
- **Removed** `PHPStan\Symfony\ServiceTagDefinition`  

PHPStan\\Symfony\\ServiceTagDefinition was removed in phpstan/phpstan-symfony 2.0.0 [packagist.org](https://packagist.org/packages/phpstan/phpstan-symfony#2.0.0)
- **Removed** `PHPStan\Type\Symfony\MessengerHandleTraitReturnTypeExtension`  

PHPStan\\Type\\Symfony\\MessengerHandleTraitReturnTypeExtension was removed in phpstan/phpstan-symfony 2.0.0 [packagist.org](https://packagist.org/packages/phpstan/phpstan-symfony#2.0.0)
- **Signature changed** `PHPStan\Rules\Symfony\ContainerInterfaceUnknownServiceRule::__construct`  

Was public function \_\_construct(ServiceMap $symfonyServiceMap, Standard $printer); now public function \_\_construct(ServiceMap $symfonyServiceMap, Printer $printer). [packagist.org](https://packagist.org/packages/phpstan/phpstan-symfony#2.0.0)
- **Signature changed** `PHPStan\Rules\Symfony\UndefinedArgumentRule::__construct`  

Was public function \_\_construct(ConsoleApplicationResolver $consoleApplicationResolver, Standard $printer); now public function \_\_construct(ConsoleApplicationResolver $consoleApplicationResolver, Printer $printer). [packagist.org](https://packagist.org/packages/phpstan/phpstan-symfony#2.0.0)
- **Signature changed** `PHPStan\Rules\Symfony\UndefinedOptionRule::__construct`  

Was public function \_\_construct(ConsoleApplicationResolver $consoleApplicationResolver, Standard $printer); now public function \_\_construct(ConsoleApplicationResolver $consoleApplicationResolver, Printer $printer). [packagist.org](https://packagist.org/packages/phpstan/phpstan-symfony#2.0.0)
- **Signature changed** `PHPStan\Symfony\Service::__construct`  

Was public function \_\_construct(string $id, ?string $class, bool $public, bool $synthetic, ?string $alias, array $tags = \[\]); now public function \_\_construct(string $id, ?string $class, bool $public, bool $synthetic, ?string $alias). [packagist.org](https://packagist.org/packages/phpstan/phpstan-symfony#2.0.0)
- **Signature changed** `PHPStan\Type\Symfony\ArgumentTypeSpecifyingExtension::__construct`  

Was public function \_\_construct(Standard $printer); now public function \_\_construct(Printer $printer). [packagist.org](https://packagist.org/packages/phpstan/phpstan-symfony#2.0.0)
- **Signature changed** `PHPStan\Type\Symfony\Config\ReturnParentDynamicReturnTypeExtension::getTypeFromMethodCall`  

Was public function getTypeFromMethodCall(MethodReflection $methodReflection, MethodCall $methodCall, Scope $scope): Type; now public function getTypeFromMethodCall(MethodReflection $methodReflection, MethodCall $methodCall, Scope $scope)... [packagist.org](https://packagist.org/packages/phpstan/phpstan-symfony#2.0.0)
- **Signature changed** `PHPStan\Type\Symfony\Config\TreeBuilderGetRootNodeDynamicReturnTypeExtension::getTypeFromMethodCall`  

Was public function getTypeFromMethodCall(MethodReflection $methodReflection, MethodCall $methodCall, Scope $scope): Type; now public function getTypeFromMethodCall(MethodReflection $methodReflection, MethodCall $methodCall, Scope $scope)... [packagist.org](https://packagist.org/packages/phpstan/phpstan-symfony#2.0.0)
- **Signature changed** `PHPStan\Type\Symfony\HeaderBagDynamicReturnTypeExtension::getTypeFromMethodCall`  

Was public function getTypeFromMethodCall(MethodReflection $methodReflection, MethodCall $methodCall, Scope $scope): Type; now public function getTypeFromMethodCall(MethodReflection $methodReflection, MethodCall $methodCall, Scope $scope)... [packagist.org](https://packagist.org/packages/phpstan/phpstan-symfony#2.0.0)
- **Signature changed** `PHPStan\Type\Symfony\InputBagDynamicReturnTypeExtension::getTypeFromMethodCall`  

Was public function getTypeFromMethodCall(MethodReflection $methodReflection, MethodCall $methodCall, Scope $scope): Type; now public function getTypeFromMethodCall(MethodReflection $methodReflection, MethodCall $methodCall, Scope $scope)... [packagist.org](https://packagist.org/packages/phpstan/phpstan-symfony#2.0.0)
- **Signature changed** `PHPStan\Type\Symfony\KernelInterfaceDynamicReturnTypeExtension::getTypeFromMethodCall`  

Was public function getTypeFromMethodCall(MethodReflection $methodReflection, MethodCall $methodCall, Scope $scope): Type; now public function getTypeFromMethodCall(MethodReflection $methodReflection, MethodCall $methodCall, Scope $scope)... [packagist.org](https://packagist.org/packages/phpstan/phpstan-symfony#2.0.0)
- **Signature changed** `PHPStan\Type\Symfony\OptionTypeSpecifyingExtension::__construct`  

Was public function \_\_construct(Standard $printer); now public function \_\_construct(Printer $printer). [packagist.org](https://packagist.org/packages/phpstan/phpstan-symfony#2.0.0)
- **Signature changed** `PHPStan\Type\Symfony\ParameterDynamicReturnTypeExtension::getTypeFromMethodCall`  

Was public function getTypeFromMethodCall(MethodReflection $methodReflection, MethodCall $methodCall, Scope $scope): Type; now public function getTypeFromMethodCall(MethodReflection $methodReflection, MethodCall $methodCall, Scope $scope)... [packagist.org](https://packagist.org/packages/phpstan/phpstan-symfony#2.0.0)
- **Signature changed** `PHPStan\Type\Symfony\RequestDynamicReturnTypeExtension::getTypeFromMethodCall`  

Was public function getTypeFromMethodCall(MethodReflection $methodReflection, MethodCall $methodCall, Scope $scope): Type; now public function getTypeFromMethodCall(MethodReflection $methodReflection, MethodCall $methodCall, Scope $scope)... [packagist.org](https://packagist.org/packages/phpstan/phpstan-symfony#2.0.0)
- **Signature changed** `PHPStan\Type\Symfony\ServiceDynamicReturnTypeExtension::getTypeFromMethodCall`  

Was public function getTypeFromMethodCall(MethodReflection $methodReflection, MethodCall $methodCall, Scope $scope): Type; now public function getTypeFromMethodCall(MethodReflection $methodReflection, MethodCall $methodCall, Scope $scope)... [packagist.org](https://packagist.org/packages/phpstan/phpstan-symfony#2.0.0)
- **Signature changed** `PHPStan\Type\Symfony\ServiceTypeSpecifyingExtension::__construct`  

Was public function \_\_construct(string $className, Standard $printer); now public function \_\_construct(string $className, Printer $printer). [packagist.org](https://packagist.org/packages/phpstan/phpstan-symfony#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-strict-rules](https://since.dev/packages/packagist/phpstan/phpstan-strict-rules.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.
