if(!empty(parse_url($location, PHP_URL_PATH))) 

As far as I remember, this use case is quite admissible, however PHPStorm writes that there is an error here, that is, a variable is expected. I do not understand him, please explain why?

    1 answer 1

    Resolved