1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-04 02:27:59 +01:00

Merge pull request #6598 from orklah/fix-error

fix error
This commit is contained in:
orklah 2021-10-05 20:50:47 +02:00 committed by GitHub
commit 4ca171001c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -237,7 +237,7 @@ class FunctionDocblockManipulator
continue;
}
if ($chars[$i + 1] === '\\' || preg_match('/\w/', $char)) {
if ($chars[$i] === '\\' || preg_match('/\w/', $char)) {
if ($this->return_typehint_start === null) {
$this->return_typehint_start = $i + $end_bracket_position + 1;
}