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
On this page
Latest version 2.1.3, released November 29, 2026. MIT license. Source repository
Its 2.0.0 release drops PHP 7.2 and 7.3. PHP end of life dates.
phpstan/phpstan-symfony 2.0.0 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 - 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 - Removed
PHPStan\Symfony\MessageMap
PHPStan\Symfony\MessageMap was removed in phpstan/phpstan-symfony 2.0.0 packagist.org - Removed
PHPStan\Symfony\MessageMapFactory
PHPStan\Symfony\MessageMapFactory was removed in phpstan/phpstan-symfony 2.0.0 packagist.org - Removed
PHPStan\Symfony\ServiceDefinition::getTags
PHPStan\Symfony\ServiceDefinition::getTags was removed in phpstan/phpstan-symfony 2.0.0 packagist.org - Removed
PHPStan\Symfony\ServiceTag
PHPStan\Symfony\ServiceTag was removed in phpstan/phpstan-symfony 2.0.0 packagist.org - Removed
PHPStan\Symfony\ServiceTagDefinition
PHPStan\Symfony\ServiceTagDefinition was removed in phpstan/phpstan-symfony 2.0.0 packagist.org - Removed
PHPStan\Type\Symfony\MessengerHandleTraitReturnTypeExtension
PHPStan\Type\Symfony\MessengerHandleTraitReturnTypeExtension was removed in phpstan/phpstan-symfony 2.0.0 packagist.org - 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 - 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 - 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 - 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 - Signature changed
PHPStan\Type\Symfony\ArgumentTypeSpecifyingExtension::__construct
Was public function __construct(Standard $printer); now public function __construct(Printer $printer). packagist.org - 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 - 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 - 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 - 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 - 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 - Signature changed
PHPStan\Type\Symfony\OptionTypeSpecifyingExtension::__construct
Was public function __construct(Standard $printer); now public function __construct(Printer $printer). packagist.org - 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 - 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 - 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 - 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
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.