From 583ac15cd6140adacaefbe0614c1f555beb03219 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 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"); } );