- WIP on supporting multiple contexts, better handling of caching for methods / functions (instead of in every files, etc...
This commit is contained in:
		
							parent
							
								
									5e54407f74
								
							
						
					
					
						commit
						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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user