Skip to content

Commit

Permalink
fixup! Refactor: Remove elseif
Browse files Browse the repository at this point in the history
  • Loading branch information
koriym committed Oct 5, 2023
1 parent e1d2619 commit dad85c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AopCodeGenMethodSignature.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public function getTypeString(?ReflectionType $type): string

// PHP 8.0+
if (class_exists('ReflectionUnionType') && $type instanceof ReflectionUnionType) {
$types = array_map(static function ($t) {
$types = array_map(/** @param ReflectionNamedType $t */static function ($t) {
/** @psalm-suppress TypeDoesNotContainType */
$isBuiltinOrSelf = $t->isBuiltin() || $t->getName() === 'self';

Expand Down

0 comments on commit dad85c1

Please sign in to comment.