Commit 1c8b2181dea for php
commit 1c8b2181dea20b4e20fd1900f716070ddc95125d
Author: Jordi Kroon <jkroon@onyourmarks.agency>
Date: Wed Nov 18 10:31:49 2026 +0100
gen_stub: fix null, true and false default values in method synopses (#25535)
diff --git a/build/gen_stub.php b/build/gen_stub.php
index cb41618867c..61662ec025b 100755
--- a/build/gen_stub.php
+++ b/build/gen_stub.php
@@ -825,7 +825,7 @@ private function getDefaultValueAsArginfoString(): string {
public function getDefaultValueAsMethodSynopsisString(): ?string {
return match ($this->defaultValue) {
'UNKNOWN' => null,
- 'false' | 'true' | 'null' => "&{$this->defaultValue};",
+ 'false', 'true', 'null' => "&{$this->defaultValue};",
default => $this->defaultValue,
};
}