Only trap E_ERROR in session handling

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2021-08-17 10:47:25 +02:00 committed by backportbot[bot]
parent f605e1dabf
commit 34ba91e141

View file

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