From 68f035ac9fa8a10066cd8a908fe9350a5d295f3b Mon Sep 17 00:00:00 2001 From: Kevin Papst Date: Thu, 21 Nov 2024 18:35:26 +0100 Subject: [PATCH] deprecated php-cs-fixer rules --- .php-cs-fixer.php | 14 +++++++------- src/Event/NotificationEvent.php | 6 +++--- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.php-cs-fixer.php b/.php-cs-fixer.php index a72e8c1..23d22b9 100644 --- a/.php-cs-fixer.php +++ b/.php-cs-fixer.php @@ -14,13 +14,13 @@ 'encoding' => true, 'full_opening_tag' => true, 'blank_line_after_namespace' => true, -// "single_space_around_construct" => true, -// "control_structure_braces" => true, -// "control_structure_continuation_position" => true, -// "declare_parentheses" => true, -// "no_multiple_statements_per_line" => true, -// "braces_position" => true, -// "statement_indentation" => true, + "single_space_around_construct" => true, + "control_structure_braces" => true, + "control_structure_continuation_position" => true, + "declare_parentheses" => true, + "no_multiple_statements_per_line" => true, + "braces_position" => true, + "statement_indentation" => true, 'class_definition' => true, 'elseif' => true, 'function_declaration' => true, diff --git a/src/Event/NotificationEvent.php b/src/Event/NotificationEvent.php index 9012e2a..a39c66f 100644 --- a/src/Event/NotificationEvent.php +++ b/src/Event/NotificationEvent.php @@ -192,9 +192,9 @@ public function getNotifications(?int $max = 10): array public function addNotification(NotificationV2Interface|NotificationInterface $notification): void { -// if (($notification instanceof NotificationV2Interface) === false) { -// trigger_deprecation('kevinpapst/tabler-bundle', '1.2.0', 'Notification should implement NotificationV2Interface::class!'); -// } + // if (($notification instanceof NotificationV2Interface) === false) { + // trigger_deprecation('kevinpapst/tabler-bundle', '1.2.0', 'Notification should implement NotificationV2Interface::class!'); + // } $this->notifications[] = $notification; }