mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fix GH-18108 gen_stub: Using $this when not in object context
This commit is contained in:
parent
76d7c616bb
commit
93a3256da8
1 changed files with 1 additions and 1 deletions
|
@ -2174,7 +2174,7 @@ class EvaluatedValue
|
|||
static function (Expr $expr) use ($allConstInfos, &$isUnknownConstValue) {
|
||||
// $expr is a ConstFetch with a name of a C macro here
|
||||
if (!$expr instanceof Expr\ConstFetch) {
|
||||
throw new Exception($this->getVariableTypeName() . " " . $this->name->__toString() . " has an unsupported value");
|
||||
throw new Exception("Expression at line " . $expr->getStartLine() . " must be a global, non-magic constant");
|
||||
}
|
||||
|
||||
$constName = $expr->name->__toString();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue