Compare commits
1 Commits
Author | SHA1 | Date |
---|---|---|
Dave M. | 200b58bdf5 |
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@ use Picea\Compiler;
|
|||
|
||||
abstract class Context {
|
||||
|
||||
public string $namespace = "";
|
||||
public string|array $namespace = "";
|
||||
|
||||
public string $extendFrom = "";
|
||||
|
||||
|
|
Loading…
Reference in New Issue