Skip to content

Commit

Permalink
Fixes #1
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanRL committed Jul 8, 2021
1 parent 698af05 commit fb6741a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Samsara/Mason/DocBlockProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ protected function typeTagProcessor(string $tagInfo)

$matched = preg_match('/\@([^\s]+)([\s]+(([^\s]+)(?:[\s]+(.+))?)?)?$/ism', trim($tagInfo), $parts);

$tag = $parts[1];
$tag = $parts[1] ?? '';
$type = $parts[4] ?? '';
$desc = $parts[3] ?? '';

Expand All @@ -280,7 +280,7 @@ protected function textTagProcessor(string $tagInfo)
{
$matched = preg_match('/\@([^\s]+)(?:([\s]+(.+)?))?$/ism', trim($tagInfo), $parts);

$tag = $parts[1];
$tag = $parts[1] ?? '';
$desc = $parts[2] ?? '';

return ['tag' => $tag, 'desc' => $desc];
Expand Down

0 comments on commit fb6741a

Please sign in to comment.