src/Standards/BestIt/Sniffs/TypeHints/ReturnTypeDeclarationSniff.php
private function loadFixableTypes(?array $returnTypes): array
    {
        return array_filter($returnTypes ?? [], function (string $returnType): bool {
            return $this->isFixableReturnType($returnType);
        });
    }
private function loadFixableTypes(?array $returnTypes): array
    {
        return array_filter($returnTypes ?? [], function (string $returnType): bool {
            return $this->isFixableReturnType($returnType);
        });
    }
private function loadFixableTypes ( ? array $ returnTypes ) : array { return array_filter ( $ returnTypes ?? [ ] , function ( string $ returnType ) : bool { return $ this -> isFixableReturnType ( $ returnType ) ; } ) ; }
Removes the return types from the given array, which are not compatible with our fix.

@param array|null $returnTypes

@return array The cleaned array.
Removes the return types from the given array which are not compatible with our fix .