diff --git a/src/Symfony/Component/EventDispatcher/Attribute/AsEventListener.php b/src/Symfony/Component/EventDispatcher/Attribute/AsEventListener.php index f42d4bddd2556..3a6dcc5b7ab29 100644 --- a/src/Symfony/Component/EventDispatcher/Attribute/AsEventListener.php +++ b/src/Symfony/Component/EventDispatcher/Attribute/AsEventListener.php @@ -22,7 +22,7 @@ class AsEventListener public function __construct( public ?string $event = null, public ?string $method = null, - public int $priority = 0, + public ?int $priority = null, public ?string $dispatcher = null, ) { }