Fix type documentation issues
authorMatthias Schmidt <gravatronics@live.com>
Wed, 7 Feb 2018 19:09:13 +0000 (20:09 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Wed, 7 Feb 2018 19:09:13 +0000 (20:09 +0100)
12 files changed:
wcfsetup/install/files/lib/acp/form/RescueModeForm.class.php
wcfsetup/install/files/lib/acp/page/UserListPage.class.php
wcfsetup/install/files/lib/data/trophy/TrophyAction.class.php
wcfsetup/install/files/lib/system/cache/builder/CategoryACLOptionCacheBuilder.class.php
wcfsetup/install/files/lib/system/condition/AbstractObjectTextPropertyCondition.class.php
wcfsetup/install/files/lib/system/message/quote/MessageQuoteManager.class.php
wcfsetup/install/files/lib/system/package/PackageUninstallationDispatcher.class.php
wcfsetup/install/files/lib/system/package/plugin/MenuPackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/request/ControllerMap.class.php
wcfsetup/install/files/lib/system/setup/Uninstaller.class.php
wcfsetup/install/files/lib/system/template/TemplateScriptingCompiler.class.php
wcfsetup/install/files/lib/system/user/notification/event/UserFollowFollowingUserNotificationEvent.class.php

index 6fef2ac1f8e86662300243b4177f09adf3f44181..c4c317d6c37425c9e77efc902a00cb9dd321e481 100644 (file)
@@ -37,7 +37,7 @@ class RescueModeForm extends AbstractCaptchaForm {
        public $applications;
        
        /**
-        * @var string[]
+        * @var string[][]
         */
        public $applicationValues = [];
        
index 86d8bafaa2839f78db436f90a8c84c6a70228bfc..78d5a78129cacb9d5930139cc7cdfcec0d6eb2c9 100755 (executable)
@@ -52,7 +52,7 @@ class UserListPage extends SortablePage {
        
        /**
         * list of column values
-        * @var string[]
+        * @var string[][]
         */
        public $columnValues = [];
        
index 98d1bfbc27315f5d32151d8093c5705ee5464544..107dd0efd59688a3d3d20be951bdc9e96973a813 100644 (file)
@@ -40,8 +40,10 @@ class TrophyAction extends AbstractDatabaseObjectAction implements IToggleAction
        
        /**
         * @inheritDoc
+        * @return      Trophy
         */
        public function create() {
+               /** @var Trophy $trophy */
                $trophy = parent::create();
                
                if (isset($this->parameters['tmpHash']) && $this->parameters['data']['type'] === Trophy::TYPE_IMAGE) {
index 874e57cb9ca3bedd66eb0477245b38c67853c383..a264ed18deec7abb3fc1ccecdfa63faf5b9a48d1 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\system\cache\builder;
+use wcf\data\category\Category;
 use wcf\system\acl\ACLHandler;
 use wcf\system\category\CategoryHandler;
 
@@ -17,6 +18,7 @@ class CategoryACLOptionCacheBuilder extends AbstractCacheBuilder {
         */
        public function rebuild(array $parameters) {
                $data = [];
+               /** @var Category[] $categories */
                foreach (CategoryHandler::getInstance()->getCategories() as $objectTypeName => $categories) {
                        $objectType = CategoryHandler::getInstance()->getObjectTypeByName($objectTypeName);
                        $aclObjectType = $objectType->getProcessor()->getObjectTypeName('com.woltlab.wcf.acl');
index c91836fffa0258a0576c5d909a2f0e6166add5b4..f9cdbedd0524a1843863aa8fe8d56b463aa235f3 100644 (file)
@@ -111,6 +111,7 @@ abstract class AbstractObjectTextPropertyCondition extends AbstractTextCondition
                parent::setData($condition);
                
                if ($this->supportsMultipleValues) {
+                       /** @noinspection PhpParamsInspection */
                        $this->fieldValue = implode(',', $this->fieldValue);
                }
        }
index 7dcd009a74139c4a00dd8e891e373d9a4d222bf1..4fa545a4423e4075798180781684371fb2528f97 100644 (file)
@@ -45,7 +45,7 @@ class MessageQuoteManager extends SingletonFactory {
        
        /**
         * list of quote messages by quote id
-        * @var string[]
+        * @var array
         */
        protected $quoteData = [];
        
index ff7ca2022b0f5804f180cc960509d5f381012702..d1334a1bf9ad87c68819f20adeab1b0f9cc2f2ea 100644 (file)
@@ -156,7 +156,7 @@ class PackageUninstallationDispatcher extends PackageInstallationDispatcher {
         * Deletes the given list of files from the target dir.
         * 
         * @param       string          $targetDir
-        * @param       string          $files
+        * @param       string[]        $files
         * @param       boolean         $deleteEmptyDirectories
         * @param       boolean         $deleteEmptyTargetDir
         */
index a5d876270534f39c5028bb57bb27f95c334f2be6..44d986f6b4a7dd64bce13ca1ef76f611001ed5c3 100644 (file)
@@ -22,7 +22,7 @@ use wcf\system\WCF;
 class MenuPackageInstallationPlugin extends AbstractXMLPackageInstallationPlugin implements IIdempotentPackageInstallationPlugin {
        /**
         * box meta data per menu
-        * @var string[]
+        * @var array
         */
        public $boxData = [];
        
index 066c24d02efcd7f9d13da8ea12b8e9502535c4a4..2ba8fa195aeaa508040848bd8c195310492a6aea 100644 (file)
@@ -19,12 +19,12 @@ use wcf\system\WCFACP;
  */
 class ControllerMap extends SingletonFactory {
        /**
-        * @var string[][]
+        * @var array
         */
        protected $ciControllers;
        
        /**
-        * @var string[][]
+        * @var array
         */
        protected $customUrls;
        
index e9bcaa73484e02dfca9bee2d61903ca9c1bc5288..9973a7750b8e98a7aebe62afa1d3f96e141f490c 100644 (file)
@@ -38,7 +38,7 @@ class Uninstaller {
         * Creates a new Uninstaller object.
         * 
         * @param       string          $targetDir
-        * @param       array           $files
+        * @param       string[]        $files
         * @param       boolean         $deleteEmptyTargetDir
         * @param       boolean         $deleteEmptyDirectories
         */
index 6bd43c6fd2a25c00c2450cd0f097687970d9dd92..ae47ce22de9dd5ab4744f5df558ef5bf28374bea 100644 (file)
@@ -166,7 +166,7 @@ class TemplateScriptingCompiler {
        
        /**
         * list of static includes per template
-        * @var string[]
+        * @var string[][]
         */
        protected $staticIncludes = [];
        
index 100f2eebd7df4deceb196e50307327bae873ce28..c56a73218c58f6f5392437496da232a2234c0c8d 100644 (file)
@@ -102,7 +102,6 @@ class UserFollowFollowingUserNotificationEvent extends AbstractUserNotificationE
        
        /**
         * @inheritDoc
-        * @return      UserFollowUserNotificationObject
         * @since       3.1
         */
        public static function getTestAdditionalData(IUserNotificationObject $object) {