- Fixed some PHP 8.x bugs (missing vars within compiler's context) and removed Picea's error handler - needs some work before putting online
This commit is contained in:
parent
169400cd61
commit
b1e1324bfa
|
@ -24,10 +24,12 @@ abstract class Context {
|
||||||
|
|
||||||
public array $switchStack = [];
|
public array $switchStack = [];
|
||||||
|
|
||||||
public array $iterateStack = [];
|
public array $iterationStack = [];
|
||||||
|
|
||||||
public array $useStack = [];
|
public array $useStack = [];
|
||||||
|
|
||||||
|
public array $sections = [];
|
||||||
|
|
||||||
public int $functions = 0;
|
public int $functions = 0;
|
||||||
|
|
||||||
public array $functionStack = [];
|
public array $functionStack = [];
|
||||||
|
|
|
@ -71,12 +71,12 @@ class Picea implements LanguageRegistration
|
||||||
return call_user_func($object);
|
return call_user_func($object);
|
||||||
}
|
}
|
||||||
catch(\Throwable $ex) {
|
catch(\Throwable $ex) {
|
||||||
if (! $ex instanceof Exception\RenderHtmlException ) {
|
# if (! $ex instanceof Exception\RenderHtmlException ) {
|
||||||
throw new Exception\RenderHtmlException($object, $this, "An error occurred trying to render HTML view `$viewPath` : " . $ex->getMessage(), 911, $ex);
|
# throw new Exception\RenderHtmlException($object, $this, "An error occurred trying to render HTML view `$viewPath` : " . $ex->getMessage(), 911, $ex);
|
||||||
}
|
# }
|
||||||
else {
|
#else {
|
||||||
throw $ex;
|
throw $ex;
|
||||||
}
|
# }
|
||||||
}
|
}
|
||||||
|
|
||||||
exit();
|
exit();
|
||||||
|
|
Loading…
Reference in New Issue