We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 472228c commit 033eb78Copy full SHA for 033eb78
src/Rules/FunctionDefinitionCheck.php
@@ -712,18 +712,12 @@ private function checkImplicitlyNullableType(
712
if ($type instanceof Identifier && strtolower($type->name) === 'mixed') {
713
return null;
714
}
715
- if ($type instanceof Name && $type->toLowerString() === 'mixed') {
716
- return null;
717
- }
718
719
if ($type instanceof UnionType) {
720
foreach ($type->types as $innerType) {
721
if ($innerType instanceof Identifier && strtolower($innerType->name) === 'null') {
722
723
724
- if ($innerType instanceof Name && $innerType->toLowerString() === 'null') {
725
726
727
728
729
0 commit comments