Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
keradus committed Dec 28, 2023
1 parent d23c30d commit c7a865f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Fixer/Import/FullyQualifiedStrictTypesFixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ private function fixPhpDoc(Tokens $tokens, int $index, array $uses, string $name
{
$phpDoc = $tokens[$index];
$phpDocContent = $phpDoc->getContent();
Preg::matchAll('#@([^\s]+)\s+([^\s]+)#', $phpDocContent, $matches);
Preg::matchAll('#@([^\s]+)\s+([^\s}]+)#', $phpDocContent, $matches);

if ([] !== $matches) {
foreach ($matches[2] as $i => $typeName) {
Expand Down

0 comments on commit c7a865f

Please sign in to comment.