From 92a67972b071f31b6d925d6f4ee5f8cc2fd8c7c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Paris?= Date: Fri, 2 Jun 2023 19:20:45 +0200 Subject: [PATCH] Reach Psalm level 3 --- lib/Doctrine/Deprecations/Deprecation.php | 3 +++ psalm.xml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/Doctrine/Deprecations/Deprecation.php b/lib/Doctrine/Deprecations/Deprecation.php index dc29820..a583057 100644 --- a/lib/Doctrine/Deprecations/Deprecation.php +++ b/lib/Doctrine/Deprecations/Deprecation.php @@ -8,6 +8,7 @@ use function array_key_exists; use function array_reduce; +use function assert; use function debug_backtrace; use function sprintf; use function strpos; @@ -175,6 +176,8 @@ private static function delegateTriggerToBackend(string $message, array $backtra 'link' => $link, ]; + assert(self::$logger !== null); + self::$logger->notice($message, $context); } diff --git a/psalm.xml b/psalm.xml index 0d1301f..fe4301e 100644 --- a/psalm.xml +++ b/psalm.xml @@ -1,6 +1,6 @@