Improve code for better code analysis by IDE (part 2)
authorMatthias Schmidt <gravatronics@live.com>
Sun, 2 Oct 2016 09:16:26 +0000 (11:16 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sun, 2 Oct 2016 09:16:26 +0000 (11:16 +0200)
wcfsetup/install/files/lib/action/AJAXInvokeAction.class.php
wcfsetup/install/files/lib/system/io/File.class.php

index 4a86c292dc84d2d531483d1d75d0e4a991740120..8fe16e28805834501bf25b4989689e00248f8a94 100644 (file)
@@ -263,6 +263,8 @@ class AJAXInvokeAction extends AbstractSecureAction {
                
                // execute request
                $className = get_called_class();
+               
+               /** @var AJAXInvokeAction $actionObject */
                $actionObject = new $className();
                $actionObject->enableDebugMode();
                $actionObject->__run();
index 78b37297a91caebb9fcfe1f3f6f0a014f04b4c9b..1f7c6abcf067cfa772e53827007ad0d82f3e0035 100644 (file)
@@ -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()