src/Standards/BestIt/Sniffs/TypeHints/ReturnTypeDeclarationSniff.php
private function isFixableReturnType(string $type): bool
    {
        // $type === null is not valid in our slevomat helper.
        return TypeHintHelper::isSimpleTypeHint($type) || $type === 'null' || $this->isCustomArrayType($type);
    }
private function isFixableReturnType(string $type): bool
    {
        // $type === null is not valid in our slevomat helper.
        return TypeHintHelper::isSimpleTypeHint($type) || $type === 'null' || $this->isCustomArrayType($type);
    }
private function isFixableReturnType ( string $ type ) : bool { // $type === null is not valid in our slevomat helper. return TypeHintHelper :: isSimpleTypeHint ( $ type ) || $ type === 'null' || $ this -> isCustomArrayType ( $ type ) ; }
Check if the return annotation type is valid.

@param string $type The type value of the return annotation

@return bool Type is valid
Check if the return annotation type is valid .