Skip to content

Commit 9ac59d0

Browse files
committed
Merge branch 'PHP-8.2' into PHP-8.3
* PHP-8.2: Fix gen_stub.php errors (#14335)
2 parents deeeacf + 583ac15 commit 9ac59d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build/gen_stub.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -999,7 +999,7 @@ public function __construct(Name $class, string $property)
999999
$this->property = $property;
10001000
}
10011001

1002-
public function __toString()
1002+
public function __toString(): string
10031003
{
10041004
return $this->class->toString() . "::$" . $this->property;
10051005
}
@@ -1690,7 +1690,7 @@ static function (Expr $expr) use ($allConstInfos, &$isUnknownConstValue) {
16901690
return null;
16911691
}
16921692

1693-
throw new Exception("Constant " . $originatingConstName->__toString() . " cannot be found");
1693+
throw new Exception("Constant " . $constName . " cannot be found");
16941694
}
16951695
);
16961696

0 commit comments

Comments
 (0)