Skip to content

Commit

Permalink
Update src/TypeString.php
Browse files Browse the repository at this point in the history
Co-authored-by: Yoshitaka Jingu <yoshitaka.jingu@gmail.com>
  • Loading branch information
koriym and jingu committed Feb 2, 2024
1 parent 8c93232 commit b13bc8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TypeString.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,6 @@ private static function getFqnType(ReflectionNamedType $type): string
{
$isBuiltin = $type->isBuiltin() || in_array($type->getName(), ['static', 'self'], true);

Check failure on line 83 in src/TypeString.php

View workflow job for this annotation

GitHub Actions / cs / Coding Standards

Function in_array() should not be referenced via a fallback global name, but via a use statement.

Check failure on line 83 in src/TypeString.php

View workflow job for this annotation

GitHub Actions / sa / Psalm

TypeDoesNotContainType: Operand of type false is always falsy

Check failure on line 83 in src/TypeString.php

View workflow job for this annotation

GitHub Actions / cs / Coding Standards

Function in_array() should not be referenced via a fallback global name, but via a use statement.

Check failure on line 83 in src/TypeString.php

View workflow job for this annotation

GitHub Actions / sa / Psalm

TypeDoesNotContainType: Operand of type false is always falsy

return $isBuiltinOrSelf ? $type->getName() : '\\' . $type->getName();
return $isBuiltin ? $type->getName() : '\\' . $type->getName();
}
}

0 comments on commit b13bc8b

Please sign in to comment.