|
|
|
@ -577,6 +577,7 @@ class CompilerBase extends \PhpAot\Core\Translator |
|
|
|
$this->localVars = []; |
|
|
|
$this->localVars = []; |
|
|
|
$this->staticVars = []; |
|
|
|
$this->staticVars = []; |
|
|
|
$this->arguments = []; |
|
|
|
$this->arguments = []; |
|
|
|
|
|
|
|
$this->objects = []; |
|
|
|
$this->objectWrappers = []; |
|
|
|
$this->objectWrappers = []; |
|
|
|
$this->ceWrappers = []; |
|
|
|
$this->ceWrappers = []; |
|
|
|
$this->tmpVarIndex = 0; |
|
|
|
$this->tmpVarIndex = 0; |
|
|
|
@ -1607,7 +1608,7 @@ class CompilerBase extends \PhpAot\Core\Translator |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
if (!$this->hasNativeClass($classDef->extends)) { |
|
|
|
if (!$this->hasNativeClass($classDef->extends)) { |
|
|
|
$this->climate->error('Class `' . $classDef->extends . '` is not defined'); |
|
|
|
$this->climate->error('Native method `' . $class . '::' . $method . '()` not found, the parent class `' . $classDef->extends . '` is not defined'); |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
$classDef = $this->getClassDef($classDef->extends); |
|
|
|
$classDef = $this->getClassDef($classDef->extends); |
|
|
|
|