packages/NodeTypeResolver/src/Php/AbstractTypeInfo.php
public function isTypehintAble(): bool
    {
        if ($this->hasRemovedTypes()) {
            return false;
        }

        $typeCount = count($this->types);

        if ($typeCount >= 2 && $this->isArraySubtype($this->types)) {
            return true;
        }

        return $typeCount === 1;
    }
public function isTypehintAble(): bool
    {
        if ($this->hasRemovedTypes()) {
            return false;
        }

        $typeCount = count($this->types);

        if ($typeCount >= 2 && $this->isArraySubtype($this->types)) {
            return true;
        }

        return $typeCount === 1;
    }
public function isTypehintAble ( ) : bool { if ( $ this -> hasRemovedTypes ( ) ) { return false ; } $ typeCount = count ( $ this -> types ) ; if ( $ typeCount >= 2 && $ this -> isArraySubtype ( $ this -> types ) ) { return true ; } return $ typeCount === 1 ; }
Can be put as PHP typehint to code
Can be put as PHP typehint to code