From 2f99531780a32e9b43d6a4cb32eaa4c000b1f58d Mon Sep 17 00:00:00 2001 From: tracer Date: Wed, 26 Oct 2022 13:15:41 +0200 Subject: [PATCH] changed render from void to never --- src/Service/Template.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Service/Template.php b/src/Service/Template.php index 4eb4740..2b4dd73 100644 --- a/src/Service/Template.php +++ b/src/Service/Template.php @@ -13,8 +13,6 @@ namespace App\Service; * using PHP as a templating engine. */ -use JetBrains\PhpStorm\NoReturn; - class Template { /* @@ -28,8 +26,7 @@ class Template /* * Add variables to template and throw it out */ - #[NoReturn] - public function render(string $templateName, array $vars = []): void + public function render(string $templateName, array $vars = []): never { // assign template vars foreach ($vars as $name => $value) {