protected function resolveArrayType($type)
    {
        if (strrpos($type, '[]', -2) !== false) {
            return substr($type, 0, strlen($type) - 2);
        }

        return $type;
    }
protected function resolveArrayType($type)
    {
        if (strrpos($type, '[]', -2) !== false) {
            return substr($type, 0, strlen($type) - 2);
        }

        return $type;
    }
protected function resolveArrayType ( $ type ) { if ( strrpos ( $ type , '[]' , - 2 ) !== false ) { return substr ( $ type , 0 , strlen ( $ type ) - 2 ) ; } return $ type ; }
Attempt to resolve the type of an array.

@param $type

@return string
Attempt to resolve the type of an array .