We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b87093 commit ac2be71Copy full SHA for ac2be71
build/gen_stub.php
@@ -2174,7 +2174,7 @@ public function enterNode(Node $expr)
2174
static function (Expr $expr) use ($allConstInfos, &$isUnknownConstValue) {
2175
// $expr is a ConstFetch with a name of a C macro here
2176
if (!$expr instanceof Expr\ConstFetch) {
2177
- throw new Exception($this->getVariableTypeName() . " " . $this->name->__toString() . " has an unsupported value");
+ throw new Exception("Expression at line " . $expr->getStartLine() . " must be global, non-magic constant");
2178
}
2179
2180
$constName = $expr->name->__toString();
0 commit comments