From be19e7954d598220476af57b0278762d7994beed Mon Sep 17 00:00:00 2001 From: Valentin Udaltsov Date: Mon, 27 May 2024 23:11:23 +0300 Subject: [PATCH] Fix gen_stub.php errors (#14335) --- build/gen_stub.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/gen_stub.php b/build/gen_stub.php index 9b1545c0ea2..dc762f8d6cb 100755 --- a/build/gen_stub.php +++ b/build/gen_stub.php @@ -1010,7 +1010,7 @@ class PropertyName implements VariableLikeName { $this->property = $property; } - public function __toString() + public function __toString(): string { return $this->class->toString() . "::$" . $this->property; } @@ -2248,7 +2248,7 @@ class EvaluatedValue return null; } - throw new Exception("Constant " . $originatingConstName->__toString() . " cannot be found"); + throw new Exception("Constant " . $constName . " cannot be found"); } );