foglcz / JSONRpc2

Generic JSON-RPC v2 implementation
Other
19 stars 10 forks source link

ErrorHandler - compatible with Nette #21

Closed zabous closed 4 years ago

zabous commented 4 years ago

Fix - error handler compatible with Nette error handling Ignore error messages from expressions prepended the at sign (@) See https://www.php.net/manual/en/language.operators.errorcontrol.php

scottchiefbaker commented 4 years ago

I'm fine with this... for consistency I like the code reversed, and on a separate lines. If you re-work the pull request like:

if (error_reporting() === 0) { 
    return false;
}

I'll accept it.