Fix gen_stub.php errors (#14335)

This commit is contained in:
Valentin Udaltsov 2024-05-27 23:11:23 +03:00 committed by GitHub
parent 329f015c91
commit be19e7954d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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");
}
);