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:
@@ -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';
|
||||
|
||||
|
Reference in New Issue
Block a user