Fix param type for handleException
authorJannis Grimm <j@jannis.rocks>
Tue, 23 Mar 2021 19:32:39 +0000 (20:32 +0100)
committerGitHub <noreply@github.com>
Tue, 23 Mar 2021 19:32:39 +0000 (20:32 +0100)
WCF::handleException incorrectly stated it would receive only \Exception, while it is registered to receive any \Throwable.

wcfsetup/install/files/lib/system/WCF.class.php

index 3f209e1e8e9108f3cf3864be8127851af0a0ec9c..d586c0d57cdd8b919e12c45411e2df9ce4fa0a53 100644 (file)
@@ -268,7 +268,7 @@ class WCF {
        /**
         * Calls the show method on the given exception.
         * 
-        * @param       \Exception      $e
+        * @param       \Throwable      $e
         */
        public static final function handleException($e) {
                // backwards compatibility