Merge pull request #28470 from nextcloud/backport/28464/stable22

[stable22] Only trap E_ERROR in session handling
This commit is contained in:
Louis 2021-08-17 15:29:48 +02:00 committed by GitHub
commit 94e5dcd90e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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