1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Merge branch 'PHP-8.2' into PHP-8.3

* PHP-8.2:
  Fix gen_stub.php errors (#14335)
This commit is contained in:
Máté Kocsis
2024-05-27 22:47:24 +02:00

View File

@@ -999,7 +999,7 @@ class PropertyName implements VariableLikeName {
$this->property = $property;
}
public function __toString()
public function __toString(): string
{
return $this->class->toString() . "::$" . $this->property;
}
@@ -1690,7 +1690,7 @@ class EvaluatedValue
return null;
}
throw new Exception("Constant " . $originatingConstName->__toString() . " cannot be found");
throw new Exception("Constant " . $constName . " cannot be found");
}
);