From f99cbe9064c7531d9f41e6160ff7b04597105504 Mon Sep 17 00:00:00 2001 From: Awilum Date: Fri, 1 Feb 2019 22:15:14 +0300 Subject: [PATCH] Flextype Core: Snippets - code fixes according Scrutinizer Tests. - $vars was never initialized. Although not strictly required by PHP, it is generally a good practice to add --- flextype/Snippets.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/flextype/Snippets.php b/flextype/Snippets.php index 78dc5ebb..118d0828 100644 --- a/flextype/Snippets.php +++ b/flextype/Snippets.php @@ -29,6 +29,8 @@ class Snippets */ public static function get(string $snippet_name) { + $vars = []; + $vars['get'] = $snippet_name; return Snippets::_snippet($vars);