We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 76d7c61 commit 93a3256Copy full SHA for 93a3256
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 a global, non-magic constant");
2178
}
2179
2180
$constName = $expr->name->__toString();
0 commit comments