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.
2 parents ebef772 + eb1e22b commit eea9a62Copy full SHA for eea9a62
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