[php-src] PHP-8.6: gen_stub: fix null, true and false default values in method synopses (#25535)

From: Date: Wed, 18 Nov 2026 09:31:53 +0000
Subject: [php-src] PHP-8.6: gen_stub: fix null, true and false default values in method synopses (#25535)
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-143822@lists.php.net to get a copy of this message
Author: Jordi Kroon (jordikroon) Committer: GitHub (web-flow) Pusher: kocsismate Date: 2026-11-18T10:31:49+01:00 Commit: https://github.com/php/php-src/commit/1c8b2181dea20b4e20fd1900f716070ddc95125d Raw diff: https://github.com/php/php-src/commit/1c8b2181dea20b4e20fd1900f716070ddc95125d.diff gen_stub: fix null, true and false default values in method synopses (#25535) Changed paths: M build/gen_stub.php Diff: diff --git a/build/gen_stub.php b/build/gen_stub.php index cb41618867c1..61662ec025be 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, }; }

« previous php.cvs (#143822) next »