protected function classExists($name)
    {
        // Give `self`, `static` and `parent` a pass. This will actually let
        // some errors through, since we're not checking whether the keyword is
        // being used in a class scope.
        if (\in_array(\strtolower($name), ['self', 'static', 'parent'])) {
            return true;
        }

        return \class_exists($name) || $this->findInScope($name) === self::CLASS_TYPE;
    }
protected function classExists($name)
    {
        // Give `self`, `static` and `parent` a pass. This will actually let
        // some errors through, since we're not checking whether the keyword is
        // being used in a class scope.
        if (\in_array(\strtolower($name), ['self', 'static', 'parent'])) {
            return true;
        }

        return \class_exists($name) || $this->findInScope($name) === self::CLASS_TYPE;
    }
protected function classExists ( $ name ) { // Give `self`, `static` and `parent` a pass. This will actually let // some errors through, since we're not checking whether the keyword is // being used in a class scope. if ( \ in_array ( \ strtolower ( $ name ) , [ 'self' , 'static' , 'parent' ] ) ) { return true ; } return \ class_exists ( $ name ) || $ this -> findInScope ( $ name ) === self :: CLASS_TYPE ; }
Check whether a class exists, or has been defined in the current code snippet.

Gives `self`, `static` and `parent` a free pass.

@param string $name

@return bool
Check whether a class exists or has been defined in the current code snippet .