From f6571872bc69b6c6a9f69978dd88cdf311d68b3d Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sun, 2 Oct 2016 11:16:26 +0200 Subject: [PATCH] Improve code for better code analysis by IDE (part 2) --- wcfsetup/install/files/lib/action/AJAXInvokeAction.class.php | 2 ++ wcfsetup/install/files/lib/system/io/File.class.php | 1 + 2 files changed, 3 insertions(+) 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() -- 2.20.1