1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-12 16:14:16 +02:00

Flextype Core: Snippets API - improvements

This commit is contained in:
Awilum
2019-02-20 14:29:51 +03:00
parent 2af3bafd04
commit 8a72f700f5

View File

@@ -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';