diff --git a/src/Compiler/BaseContext.php b/src/Compiler/BaseContext.php index 2a657d9..a3d27da 100644 --- a/src/Compiler/BaseContext.php +++ b/src/Compiler/BaseContext.php @@ -4,7 +4,7 @@ namespace Picea\Compiler; class BaseContext extends Context { - public function __construct(?string $defaultNamespace = null) { + public function __construct(array|string|null $defaultNamespace = null) { if ( $defaultNamespace !== null ) { $this->namespace = $defaultNamespace; } diff --git a/src/Compiler/Context.php b/src/Compiler/Context.php index 51c6170..fe6645b 100644 --- a/src/Compiler/Context.php +++ b/src/Compiler/Context.php @@ -6,7 +6,7 @@ use Picea\Compiler; abstract class Context { - public string $namespace = ""; + public string|array $namespace = ""; public string $extendFrom = "";