Fix "parameter type" warnings
authorMatthias Schmidt <gravatronics@live.com>
Sat, 21 May 2016 16:34:51 +0000 (18:34 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sat, 21 May 2016 18:42:02 +0000 (20:42 +0200)
wcfsetup/install/files/lib/system/label/LabelHandler.class.php
wcfsetup/install/files/lib/system/moderation/queue/report/UserModerationQueueReportHandler.class.php
wcfsetup/install/files/lib/system/worker/SendNewPasswordWorker.class.php
wcfsetup/install/files/lib/util/StringUtil.class.php

index 58261ce9704d39bca796aedebe50a1a2957091c1..3dad7efac3c766e0d34662f5d231fa8ebd497589 100644 (file)
@@ -28,7 +28,7 @@ class LabelHandler extends SingletonFactory {
        
        /**
         * list of label groups
-        * @var ViewableLabelGroup[]
+        * @var mixed[][]
         */
        protected $labelGroups = null;
        
index 46a117a069e7bdd7c5143ea352c00720f61b437b..b3137f0bf5efbd8a37c6305090b047c2ced794c6 100644 (file)
@@ -75,6 +75,7 @@ class UserModerationQueueReportHandler extends AbstractModerationQueueHandler im
         * @inheritDoc
         */
        public function getReportedContent(ViewableModerationQueue $queue) {
+               /** @noinspection PhpParamsInspection */
                WCF::getTPL()->assign([
                        'user' => new UserProfile($queue->getAffectedObject())
                ]);
index e8e5fd5cd419916a6af0e1cf6817575b495b7a61..70edf06c00e12c63281ff3e60d62b4bbc4e754f7 100644 (file)
@@ -47,6 +47,7 @@ class SendNewPasswordWorker extends AbstractWorker {
                $userList->sqlOffset = $this->limit * $this->loopCount;
                $userList->readObjects();
                
+               /** @var UserEditor $userEditor */
                foreach ($userList as $userEditor) {
                        $this->sendNewPassword($userEditor);
                }
index 446dc981729d74797915fc363b70a02dc6ff21e3..61ced27d2a7668a5ef5a9493f3e218113f8be871 100644 (file)
@@ -151,7 +151,7 @@ final class StringUtil {
        /**
         * Formats a numeric.
         * 
-        * @param       numeric         $numeric
+        * @param       number          $numeric
         * @return      string
         */
        public static function formatNumeric($numeric) {