Only trap E_ERROR in session handling

Signed-off-by: Julius Härtl <jus@bitgrid.net>
pull/28469/head
Julius Härtl 2021-08-17 10:47:25 +07:00 committed by backportbot[bot]
parent 68c85ab93d
commit 69c7e7f1aa
1 changed files with 3 additions and 1 deletions

@ -182,7 +182,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);
}
}
/**