From 1432776550bf8a1a1fb2c5c4718e4a43995d9fa5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Kalij=C3=A4rvi?= Date: Fri, 6 Sep 2024 14:02:26 +0300 Subject: [PATCH] UHF-10547: Fixed PHPStan errors. --- src/Plugin/Block/ChatLeijuke.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Plugin/Block/ChatLeijuke.php b/src/Plugin/Block/ChatLeijuke.php index 7823ca5ca..853e376db 100644 --- a/src/Plugin/Block/ChatLeijuke.php +++ b/src/Plugin/Block/ChatLeijuke.php @@ -20,7 +20,7 @@ id: "chat_leijuke", admin_label: new TranslatableMarkup('Chat Leijuke'), )] -class ChatLeijuke extends BlockBase implements ContainerFactoryPluginInterface { +final class ChatLeijuke extends BlockBase implements ContainerFactoryPluginInterface { /** * Constructs a Chat Leijuke Block object. @@ -50,7 +50,7 @@ public function __construct( * {@inheritdoc} */ public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition): static { - return new static( + return new self( $configuration, $plugin_id, $plugin_definition,