From 86e641b856ff10d0cef0d4d866260fc0f46ae02e Mon Sep 17 00:00:00 2001 From: Dave Mc Nicoll Date: Thu, 2 Feb 2023 19:40:38 +0000 Subject: [PATCH] - Quick fix for the parse() method of Picea's extension --- src/Picea/Extension.php | 3 ++- src/Privilege.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Picea/Extension.php b/src/Picea/Extension.php index 3ae9c3a..1ebba43 100644 --- a/src/Picea/Extension.php +++ b/src/Picea/Extension.php @@ -21,7 +21,8 @@ class Extension implements \Picea\Extension\Extension $context->pushFunction("taxus", [ $this, 'taxus' ]); } - public function parse(/*\Picae\Compiler\Context*/ &$context, ?string $arguments, string $token) { + public function parse(\Picea\Compiler\Context &$context, ?string $arguments, string $token, array $options = []) : string + { return ""; } diff --git a/src/Privilege.php b/src/Privilege.php index 67a5f90..d14fefe 100644 --- a/src/Privilege.php +++ b/src/Privilege.php @@ -8,7 +8,7 @@ class Privilege public string $description; - public /* string|Callable|null */ $error; + public mixed $error; public $success;