KyranRana / cloudflare-bypass

A new and improved PHP library which bypasses the Cloudflare IUAM page using cURL
MIT License
275 stars 97 forks source link

Missing global namespace for class 'Exception' causing 'Class not found' exception #103

Closed rdk01 closed 5 years ago

rdk01 commented 5 years ago

Probably, a typo, but classes always resolve to the current namespace, so we need to use fully qualified name here:

https://github.com/KyranRana/cloudflare-bypass/blob/5fde39d4c3b9e4a9670747bacc9e18663818208e/src/CloudflareBypass/CFBypasser.php#L182

Laky-64 commented 5 years ago

Change new Exception to new \ErrorException

KyranRana commented 5 years ago

v3.0.0 out now.