Only trap E_ERROR in session handling

Signed-off-by: Julius Härtl <jus@bitgrid.net>
pull/28464/head
Julius Härtl 3 years ago
parent 9603069cc7
commit c1ea6a899c
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF

@ -181,7 +181,9 @@ class Internal extends Session {
* @throws \ErrorException
*/
public function trapError(int $errorNumber, string $errorString) {
throw new \ErrorException($errorString);
if ($errorNumber & E_ERROR) {
throw new \ErrorException($errorString);
}
}
/**

Loading…
Cancel
Save