src/Standards/BestIt/Sniffs/TypeHints/ReturnTypeDeclarationSniff.php
private function hasReturnType(): bool
    {
        if ($this->hasReturnType === null) {
            $this->hasReturnType = FunctionHelper::hasReturnTypeHint($this->file->getBaseFile(), $this->stackPos);
        }

        return $this->hasReturnType;
    }
private function hasReturnType(): bool
    {
        if ($this->hasReturnType === null) {
            $this->hasReturnType = FunctionHelper::hasReturnTypeHint($this->file->getBaseFile(), $this->stackPos);
        }

        return $this->hasReturnType;
    }
private function hasReturnType ( ) : bool { if ( $ this -> hasReturnType === null ) { $ this -> hasReturnType = FunctionHelper :: hasReturnTypeHint ( $ this -> file -> getBaseFile ( ) , $ this -> stackPos ) ; } return $ this -> hasReturnType ; }
Check if there is a return type.

@return bool
Check if there is a return type .