Fix some self deprecation notices

This commit is contained in:
Yassine Guedidi
2025-01-18 23:56:06 +01:00
parent 5a8b581adf
commit 98ed784af3
47 changed files with 57 additions and 49 deletions

View File

@ -18,7 +18,7 @@ class AuthenticationFailureListener implements EventSubscriberInterface
$this->logger = $logger;
}
public static function getSubscribedEvents()
public static function getSubscribedEvents(): array
{
return [
AuthenticationEvents::AUTHENTICATION_FAILURE => 'onAuthenticationFailure',

View File

@ -38,7 +38,7 @@ class CreateConfigListener implements EventSubscriberInterface
$this->displayThumbnails = $displayThumbnails;
}
public static function getSubscribedEvents()
public static function getSubscribedEvents(): array
{
return [
// when a user register using the normal form

View File

@ -34,7 +34,7 @@ class LocaleListener implements EventSubscriberInterface
}
}
public static function getSubscribedEvents()
public static function getSubscribedEvents(): array
{
return [
// must be registered before the default Locale listener

View File

@ -22,7 +22,7 @@ class PasswordResettingListener implements EventSubscriberInterface
$this->router = $router;
}
public static function getSubscribedEvents()
public static function getSubscribedEvents(): array
{
return [
FOSUserEvents::RESETTING_RESET_SUCCESS => 'onPasswordResettingSuccess',

View File

@ -26,7 +26,7 @@ class RegistrationListener implements EventSubscriberInterface
$this->urlGenerator = $urlGenerator;
}
public static function getSubscribedEvents()
public static function getSubscribedEvents(): array
{
return [
FOSUserEvents::REGISTRATION_INITIALIZE => 'onRegistrationInitialize',

View File

@ -25,7 +25,7 @@ class DownloadImagesSubscriber implements EventSubscriberInterface
$this->logger = $logger;
}
public static function getSubscribedEvents()
public static function getSubscribedEvents(): array
{
return [
EntrySavedEvent::NAME => 'onEntrySaved',

View File

@ -18,7 +18,7 @@ class GenerateCustomCSSSubscriber implements EventSubscriberInterface
$this->compiler = $compiler;
}
public static function getSubscribedEvents()
public static function getSubscribedEvents(): array
{
return [
ConfigUpdatedEvent::NAME => 'onConfigUpdated',

View File

@ -15,7 +15,7 @@ class SchemaAdapterSubscriber implements EventSubscriber
$this->databaseTablePrefix = $databaseTablePrefix;
}
public function getSubscribedEvents()
public function getSubscribedEvents(): array
{
return ['postGenerateSchema'];
}

View File

@ -25,7 +25,7 @@ class TablePrefixSubscriber implements EventSubscriber
$this->tablePrefix = (string) $tablePrefix;
}
public function getSubscribedEvents()
public function getSubscribedEvents(): array
{
return ['loadClassMetadata'];
}