From 0fb5a009309719208d41b29a677d30645041736e Mon Sep 17 00:00:00 2001 From: Andreas Schempp Date: Tue, 26 Oct 2021 18:03:22 +0200 Subject: [PATCH] Event listener from attribute should not have a default priority --- .../Component/EventDispatcher/Attribute/AsEventListener.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, ) { }