summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2021-01-18 13:11:35 +0100
committerNikita Popov <nikita.ppv@gmail.com>2021-01-18 13:13:32 +0100
commit85bfa2243a7f4a390d75f384c3fee43c7f140218 (patch)
tree1a49d5124db655e8b53dce0836705f8a13034b67 /build
parent43d5cef448429fae2cb597f72e27d93c267bea0d (diff)
downloadphp-git-85bfa2243a7f4a390d75f384c3fee43c7f140218.tar.gz
gen_stub: Allow additional text after @return
In case the stub file also contains documentation.
Diffstat (limited to 'build')
-rwxr-xr-xbuild/gen_stub.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/gen_stub.php b/build/gen_stub.php
index a952f61604..c765102999 100755
--- a/build/gen_stub.php
+++ b/build/gen_stub.php
@@ -1027,7 +1027,7 @@ class DocCommentTag {
if ($this->name === "param") {
preg_match('/^\s*([\w\|\\\\\[\]]+)\s*\$\w+.*$/', $value, $matches);
} elseif ($this->name === "return") {
- preg_match('/^\s*([\w\|\\\\\[\]]+)\s*$/', $value, $matches);
+ preg_match('/^\s*([\w\|\\\\\[\]]+)(\s+|$)/', $value, $matches);
}
if (isset($matches[1]) === false) {