Skip to content

Commit 086b179

Browse files
php8 compatibility
1 parent aeadacc commit 086b179

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Plugin/BlockPlugin.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
* Glory to Ukraine! Glory to the heroes!
77
*/
88

9+
declare(strict_types = 1);
10+
911
namespace Magefan\LazyLoad\Plugin;
1012

1113
/**
@@ -112,7 +114,7 @@ public function afterToHtml(\Magento\Framework\View\Element\AbstractBlock $block
112114
* @param string $html
113115
* @return boolean
114116
*/
115-
protected function isEnabled($block, $html)
117+
protected function isEnabled($block, string $html): bool
116118
{
117119
if (PHP_SAPI === 'cli'
118120
|| $this->request->isXmlHttpRequest()

0 commit comments

Comments
 (0)