From 8f1bb5488489f82f695b96fa273c7f225e8bf14e Mon Sep 17 00:00:00 2001 From: David Grudl Date: Tue, 10 Dec 2019 22:49:55 +0100 Subject: [PATCH] fixed bugs reported by PHPStan --- src/Application/UI/Link.php | 1 + src/Bridges/ApplicationLatte/Template.php | 1 + 2 files changed, 2 insertions(+) diff --git a/src/Application/UI/Link.php b/src/Application/UI/Link.php index a48ddc5f2..751dc999f 100644 --- a/src/Application/UI/Link.php +++ b/src/Application/UI/Link.php @@ -93,6 +93,7 @@ public function __toString(): string throw $e; } trigger_error('Exception in ' . __METHOD__ . "(): {$e->getMessage()} in {$e->getFile()}:{$e->getLine()}", E_USER_ERROR); + return ''; } } } diff --git a/src/Bridges/ApplicationLatte/Template.php b/src/Bridges/ApplicationLatte/Template.php index 5107e8d13..bda6e7d91 100644 --- a/src/Bridges/ApplicationLatte/Template.php +++ b/src/Bridges/ApplicationLatte/Template.php @@ -73,6 +73,7 @@ public function __toString(): string throw $e; } trigger_error('Exception in ' . __METHOD__ . "(): {$e->getMessage()} in {$e->getFile()}:{$e->getLine()}", E_USER_ERROR); + return ''; } }