Skip to content

Commit 583ac15

Browse files
vudaltsovkocsismate
authored andcommitted
Fix gen_stub.php errors (#14335)
1 parent 35e62e9 commit 583ac15

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build/gen_stub.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -990,7 +990,7 @@ public function __construct(Name $class, string $property)
990990
$this->property = $property;
991991
}
992992

993-
public function __toString()
993+
public function __toString(): string
994994
{
995995
return $this->class->toString() . "::$" . $this->property;
996996
}
@@ -1624,7 +1624,7 @@ function (Expr $expr) use ($allConstInfos, &$constType, &$originatingConst, &$is
16241624
return null;
16251625
}
16261626

1627-
throw new Exception("Constant " . $originatingConstName->__toString() . " cannot be found");
1627+
throw new Exception("Constant " . $constName . " cannot be found");
16281628
}
16291629
);
16301630

0 commit comments

Comments
 (0)