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

@ -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'];
}