From: Matthias Schmidt Date: Sun, 2 Oct 2016 09:16:26 +0000 (+0200) Subject: Improve code for better code analysis by IDE (part 2) X-Git-Tag: 3.0.0_Beta_2~31 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f6571872bc69b6c6a9f69978dd88cdf311d68b3d;p=GitHub%2FWoltLab%2FWCF.git Improve code for better code analysis by IDE (part 2) --- diff --git a/wcfsetup/install/files/lib/action/AJAXInvokeAction.class.php b/wcfsetup/install/files/lib/action/AJAXInvokeAction.class.php index 4a86c292dc..8fe16e2880 100644 --- a/wcfsetup/install/files/lib/action/AJAXInvokeAction.class.php +++ b/wcfsetup/install/files/lib/action/AJAXInvokeAction.class.php @@ -263,6 +263,8 @@ class AJAXInvokeAction extends AbstractSecureAction { // execute request $className = get_called_class(); + + /** @var AJAXInvokeAction $actionObject */ $actionObject = new $className(); $actionObject->enableDebugMode(); $actionObject->__run(); diff --git a/wcfsetup/install/files/lib/system/io/File.class.php b/wcfsetup/install/files/lib/system/io/File.class.php index 78b37297a9..1f7c6abcf0 100644 --- a/wcfsetup/install/files/lib/system/io/File.class.php +++ b/wcfsetup/install/files/lib/system/io/File.class.php @@ -26,6 +26,7 @@ use wcf\system\exception\SystemException; * @method integer filesize() * @method string gets($length = null) * @method resource open($mode, $use_include_path = false, $context = null) + * @method integer puts($string, $length = null) alias of `write` * @method string read($length) * @method integer seek($offset, $whence = SEEK_SET) * @method array stat()