mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-01 05:54:32 +02:00
Fixed some deprecations.
This commit is contained in:
parent
4fa8eef1bf
commit
5fd608f42a
59 changed files with 202 additions and 165 deletions
|
@ -213,7 +213,7 @@ class EventLoggerSubscriber implements EventSubscriber
|
|||
return true;
|
||||
}
|
||||
|
||||
public function getSubscribedEvents()
|
||||
public function getSubscribedEvents(): array
|
||||
{
|
||||
return[
|
||||
Events::onFlush,
|
||||
|
|
|
@ -58,7 +58,7 @@ class LogAccessDeniedSubscriber implements EventSubscriberInterface
|
|||
$this->logger->logAndFlush($log_entry);
|
||||
}
|
||||
|
||||
public static function getSubscribedEvents()
|
||||
public static function getSubscribedEvents(): array
|
||||
{
|
||||
return ['kernel.exception' => 'onKernelException'];
|
||||
}
|
||||
|
|
|
@ -102,7 +102,7 @@ class LogDBMigrationSubscriber implements EventSubscriber
|
|||
}
|
||||
}
|
||||
|
||||
public function getSubscribedEvents()
|
||||
public function getSubscribedEvents(): array
|
||||
{
|
||||
return [
|
||||
Events::onMigrationsMigrated,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue