Merge pull request #28469 from nextcloud/backport/28464/stable21

[stable21] Only trap E_ERROR in session handling
This commit is contained in:
Louis 2021-08-17 15:29:45 +02:00 committed by GitHub
commit ac5d14400b
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);
}
}
/**