Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setHandlers on construction.. weird #2

Open
HexMakina opened this issue Sep 9, 2021 · 0 comments
Open

setHandlers on construction.. weird #2

HexMakina opened this issue Sep 9, 2021 · 0 comments
Labels
invalid This doesn't seem right

Comments

@HexMakina
Copy link
Owner

constructor automatically

    set_error_handler([$this, 'errorHandler']);
    set_exception_handler([$this, 'exceptionHandler']);

what happens when one or both are disabled later in the code ?

setting handlers in constructor doesn't seem right, devs won't know.

@HexMakina HexMakina added the invalid This doesn't seem right label Sep 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

1 participant