N°7920 - laminas-mail is an abandoned package, replace it with symfony/mailer (#742)

* N°7920 - laminas-mail is an abandoned package, replace it with symfony/mailer

* Fix composer following merge
This commit is contained in:
Stephen Abello
2025-09-17 16:04:20 +02:00
committed by GitHub
parent 8982f7e0e3
commit 428d2c6356
645 changed files with 20889 additions and 81911 deletions

View File

@@ -42,7 +42,7 @@ class EventDispatcher implements EventDispatcherInterface
}
}
public function dispatch(object $event, string $eventName = null): object
public function dispatch(object $event, ?string $eventName = null): object
{
$eventName ??= $event::class;
@@ -59,7 +59,7 @@ class EventDispatcher implements EventDispatcherInterface
return $event;
}
public function getListeners(string $eventName = null): array
public function getListeners(?string $eventName = null): array
{
if (null !== $eventName) {
if (empty($this->listeners[$eventName])) {
@@ -108,7 +108,7 @@ class EventDispatcher implements EventDispatcherInterface
return null;
}
public function hasListeners(string $eventName = null): bool
public function hasListeners(?string $eventName = null): bool
{
if (null !== $eventName) {
return !empty($this->listeners[$eventName]);