From: Matthias Schmidt Date: Tue, 18 Jun 2019 18:13:04 +0000 (+0200) Subject: Throw exception in `WCF::__call()` for undefined methods X-Git-Tag: 5.2.0_Alpha_1~41 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9b31ab91220dbc20537bab62620d723957a67ba2;p=GitHub%2FWoltLab%2FWCF.git Throw exception in `WCF::__call()` for undefined methods --- diff --git a/wcfsetup/install/files/lib/system/WCF.class.php b/wcfsetup/install/files/lib/system/WCF.class.php index 16d26a9071..bf3fb73ba1 100644 --- a/wcfsetup/install/files/lib/system/WCF.class.php +++ b/wcfsetup/install/files/lib/system/WCF.class.php @@ -807,7 +807,7 @@ class WCF { return self::__callStatic($name, $arguments); } - return $this->$name($arguments); + throw new \BadMethodCallException("Call to undefined method WCF::{$name}()."); } /**