summaryrefslogtreecommitdiffstats
path: root/php-laminas-mvc-plugin-flashmessenger-php8.patch
blob: 09ee6f0e46d9d3c400e3642dc5bff3fc1bdb5498 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff -up ./src/View/Helper/FlashMessenger.php.php8 ./src/View/Helper/FlashMessenger.php
--- ./src/View/Helper/FlashMessenger.php.php8	2021-03-25 14:13:31.812239965 +0100
+++ ./src/View/Helper/FlashMessenger.php	2021-03-25 14:14:00.140131501 +0100
@@ -332,7 +332,7 @@ class FlashMessenger extends AbstractHel
             return $this->escapeHtmlHelper;
         }
 
-        if (method_exists($this->getView(), 'plugin')) {
+        if ($this->getView() && method_exists($this->getView(), 'plugin')) {
             $this->escapeHtmlHelper = $this->view->plugin('escapehtml');
         }