Skip to content

Use global Exception class, not namespaced. - #2

Open
mohsin wants to merge 2 commits into
paytm:masterfrom
mohsin:patch-2
Open

Use global Exception class, not namespaced.#2
mohsin wants to merge 2 commits into
paytm:masterfrom
mohsin:patch-2

Conversation

@mohsin

@mohsin mohsin commented Sep 2, 2020

Copy link
Copy Markdown

Using Exception as IS gives the error:

<b>Fatal error</b>:  Uncaught Error: Class 'paytm\paytmchecksum\Exception' not found in vendor/paytm/paytmchecksum/paytmchecksum/PaytmChecksum.php:56

Because inside a namespace the class tries to refer to it's own package Reference.

Using Exception as IS gives the error:
```
<b>Fatal error</b>:  Uncaught Error: Class 'paytm\paytmchecksum\Exception' not found in vendor/paytm/paytmchecksum/paytmchecksum/PaytmChecksum.php:56
```
Because inside a namespace the class tries to refer to it's own package [Reference](https://stackoverflow.com/a/57898948).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant