Commit eb1e22b1dfd for php.net

commit eb1e22b1dfdced77c82b62f223381fe12bb26e09
Author: Máté Kocsis <kocsismate@woohoolabs.com>
Date:   Thu Jan 8 22:47:22 2026 +0100

    Fix constant references inside parameter default values when generating the manual

diff --git a/build/gen_stub.php b/build/gen_stub.php
index e1e225dc201..4a293972f04 100755
--- a/build/gen_stub.php
+++ b/build/gen_stub.php
@@ -2184,7 +2184,7 @@ public function getMethodSynopsisElement(DOMDocument $doc): ?DOMElement {
                 $defaultValue = $arg->getDefaultValueAsMethodSynopsisString();
                 if ($defaultValue !== null) {
                     $initializer = $doc->createElement('initializer');
-                    if (preg_match('/^[a-zA-Z_][a-zA-Z_0-9]*$/', $defaultValue)) {
+                    if (preg_match('/^[a-zA-Z_][a-zA-Z_0-9\:\\\\]*$/', $defaultValue)) {
                         $constant = $doc->createElement('constant', $defaultValue);
                         $initializer->appendChild($constant);
                     } else {