Skip to content

Commit be19e79

Browse files
authored
Fix gen_stub.php errors (#14335)
1 parent 329f015 commit be19e79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build/gen_stub.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1010,7 +1010,7 @@ public function __construct(Name $class, string $property)
10101010
$this->property = $property;
10111011
}
10121012

1013-
public function __toString()
1013+
public function __toString(): string
10141014
{
10151015
return $this->class->toString() . "::$" . $this->property;
10161016
}
@@ -2248,7 +2248,7 @@ static function (Expr $expr) use ($allConstInfos, &$isUnknownConstValue) {
22482248
return null;
22492249
}
22502250

2251-
throw new Exception("Constant " . $originatingConstName->__toString() . " cannot be found");
2251+
throw new Exception("Constant " . $constName . " cannot be found");
22522252
}
22532253
);
22542254

0 commit comments

Comments
 (0)