diff --git a/build/gen_stub.php b/build/gen_stub.php index 0c745c8c030..b25e660cf61 100755 --- a/build/gen_stub.php +++ b/build/gen_stub.php @@ -990,7 +990,7 @@ class PropertyName { $this->property = $property; } - public function __toString() + public function __toString(): string { return $this->class->toString() . "::$" . $this->property; } @@ -1624,7 +1624,7 @@ class EvaluatedValue return null; } - throw new Exception("Constant " . $originatingConstName->__toString() . " cannot be found"); + throw new Exception("Constant " . $constName . " cannot be found"); } );