Skip to content

Commit 033eb78

Browse files
committed
Simplify code
1 parent 472228c commit 033eb78

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/Rules/FunctionDefinitionCheck.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -712,18 +712,12 @@ private function checkImplicitlyNullableType(
712712
if ($type instanceof Identifier && strtolower($type->name) === 'mixed') {
713713
return null;
714714
}
715-
if ($type instanceof Name && $type->toLowerString() === 'mixed') {
716-
return null;
717-
}
718715

719716
if ($type instanceof UnionType) {
720717
foreach ($type->types as $innerType) {
721718
if ($innerType instanceof Identifier && strtolower($innerType->name) === 'null') {
722719
return null;
723720
}
724-
if ($innerType instanceof Name && $innerType->toLowerString() === 'null') {
725-
return null;
726-
}
727721
}
728722
}
729723

0 commit comments

Comments
 (0)