Skip to content

Commit

Permalink
Allow whitespace in parameter type definition
Browse files Browse the repository at this point in the history
  • Loading branch information
erikgaal committed Mar 21, 2022
1 parent 221edf6 commit d2603f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TypeReflectors/MethodParameterTypeReflector.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ protected function getDocblock(): string

protected function docblockRegex(): string
{
return "/@param ((?:(?:[\\w?|\\\\<>,])+(?:\\[])?)+) \\\${$this->reflection->getName()}/";
return "/@param ((?:\\s?[\\w?|\\\\<>,]+(?:\\[])?)+) \\\${$this->reflection->getName()}/";
}

protected function getReflectionType(): ?ReflectionType
Expand Down

0 comments on commit d2603f5

Please sign in to comment.