Library/ClassMethod.php
public function areReturnTypesNullCompatible($type = null)
    {
        if (\count($this->returnTypes)) {
            foreach ($this->returnTypes as $returnType => $definition) {
                switch ($returnType) {
                    case 'null':
                        return true;
                }
            }
        }

        return false;
    }
public function areReturnTypesNullCompatible($type = null)
    {
        if (\count($this->returnTypes)) {
            foreach ($this->returnTypes as $returnType => $definition) {
                switch ($returnType) {
                    case 'null':
                        return true;
                }
            }
        }

        return false;
    }
public function areReturnTypesNullCompatible ( $ type = null ) { if ( \ count ( $ this -> returnTypes ) ) { foreach ( $ this -> returnTypes as $ returnType => $ definition ) { switch ( $ returnType ) { case 'null' : return true ; } } } return false ; }
Checks whether at least one return type hint is null compatible.

@param string $type

@return bool
Checks whether at least one return type hint is null compatible .