We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5c7903 commit eb1e22bCopy full SHA for eb1e22b
build/gen_stub.php
@@ -2184,7 +2184,7 @@ public function getMethodSynopsisElement(DOMDocument $doc): ?DOMElement {
2184
$defaultValue = $arg->getDefaultValueAsMethodSynopsisString();
2185
if ($defaultValue !== null) {
2186
$initializer = $doc->createElement('initializer');
2187
- if (preg_match('/^[a-zA-Z_][a-zA-Z_0-9]*$/', $defaultValue)) {
+ if (preg_match('/^[a-zA-Z_][a-zA-Z_0-9\:\\\\]*$/', $defaultValue)) {
2188
$constant = $doc->createElement('constant', $defaultValue);
2189
$initializer->appendChild($constant);
2190
} else {
0 commit comments