diff --git a/src/Php/CompilerBase.php b/src/Php/CompilerBase.php index 7cb3df0a..a5e4a125 100644 --- a/src/Php/CompilerBase.php +++ b/src/Php/CompilerBase.php @@ -4049,7 +4049,7 @@ class CompilerBase extends \PhpAot\Core\Translator $methodPtr = $this->identifierToStr($expr->name, literal: true); $fn = Symbol::getCalledCe() . ', php::getMethod(' . Symbol::getCalledCe() . ', ' . $methodPtr . ')'; $this->context->beforeStmtLines[] = '// Static Method Call: static::' . $this->parseIdentifier($expr->name) . '()'; - $placeHolder = $this->genArray([Symbol::getCalledCe(), $methodPtr]); + $placeHolder = $this->genArray([Symbol::getCalledClass(), $methodPtr]); } elseif ($this->isNameExpr($expr->class)) { if ($class === 'self') { $class = $this->class; diff --git a/tests/aot/place-holder.phpt b/tests/aot/place-holder/001.phpt similarity index 100% rename from tests/aot/place-holder.phpt rename to tests/aot/place-holder/001.phpt diff --git a/tests/aot/place-holder/002.phpt b/tests/aot/place-holder/002.phpt new file mode 100644 index 00000000..bf1cae4a --- /dev/null +++ b/tests/aot/place-holder/002.phpt @@ -0,0 +1,31 @@ +--TEST-- +place-holder +--FILE-- + +--EXPECT-- +baz \ No newline at end of file diff --git a/tests/aot/place-holder-002.phpt b/tests/aot/place-holder/003.phpt similarity index 100% rename from tests/aot/place-holder-002.phpt rename to tests/aot/place-holder/003.phpt