Merge pull request #42014 from nextcloud/backport/41985/stable28

This commit is contained in:
Benjamin Gaussorgues 2023-12-05 16:56:06 +01:00 committed by GitHub
commit 52aadb5fd2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -70,9 +70,9 @@ class BrowserErrorPagePlugin extends ServerPlugin {
}
/**
* @param \Exception $ex
* @param \Throwable $ex
*/
public function logException(\Exception $ex) {
public function logException(\Throwable $ex): void {
if ($ex instanceof Exception) {
$httpCode = $ex->getHTTPCode();
$headers = $ex->getHTTPHeaders($this->server);