From 8a72f700f58fb24946632828538b22ed19ba7498 Mon Sep 17 00:00:00 2001 From: Awilum Date: Wed, 20 Feb 2019 14:29:51 +0300 Subject: [PATCH] Flextype Core: Snippets API - improvements --- flextype/Snippets.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flextype/Snippets.php b/flextype/Snippets.php index f56fb888..9163406f 100644 --- a/flextype/Snippets.php +++ b/flextype/Snippets.php @@ -75,7 +75,7 @@ class Snippets * @param string $data Data * @return bool True on success, false on failure. */ - public static function create(string $snippet, string $data) : bool + public static function create(string $snippet, string $data = '') : bool { $snippet_file = PATH['snippets'] . '/' . $snippet . '.php';