Skip to content

Commit 1a72b2d

Browse files
Fix RiskyTruthyFalsyComparison
1 parent 89128a5 commit 1a72b2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Inpsyde/Helpers/FunctionDocBlock.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public static function tag(string $tag, File $file, int $position): array
101101
{
102102
$tagName = '@' . ltrim($tag, '@');
103103
$tags = static::allTags($file, $position);
104-
if (empty($tags[$tagName])) {
104+
if (!isset($tags[$tagName]) || $tags[$tagName] === []) {
105105
return [];
106106
}
107107

0 commit comments

Comments
 (0)