Merge pull request #28471 from nextcloud/backport/28464/stable20

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

View file

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