From: Matthias Schmidt Date: Sat, 21 May 2016 16:34:51 +0000 (+0200) Subject: Fix "parameter type" warnings X-Git-Tag: 3.0.0_Beta_1~1681^2~12 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=29ae57a58d385db58e0a029410dcc16e10ed7af3;p=GitHub%2FWoltLab%2FWCF.git Fix "parameter type" warnings --- diff --git a/wcfsetup/install/files/lib/system/label/LabelHandler.class.php b/wcfsetup/install/files/lib/system/label/LabelHandler.class.php index 58261ce970..3dad7efac3 100644 --- a/wcfsetup/install/files/lib/system/label/LabelHandler.class.php +++ b/wcfsetup/install/files/lib/system/label/LabelHandler.class.php @@ -28,7 +28,7 @@ class LabelHandler extends SingletonFactory { /** * list of label groups - * @var ViewableLabelGroup[] + * @var mixed[][] */ protected $labelGroups = null; diff --git a/wcfsetup/install/files/lib/system/moderation/queue/report/UserModerationQueueReportHandler.class.php b/wcfsetup/install/files/lib/system/moderation/queue/report/UserModerationQueueReportHandler.class.php index 46a117a069..b3137f0bf5 100644 --- a/wcfsetup/install/files/lib/system/moderation/queue/report/UserModerationQueueReportHandler.class.php +++ b/wcfsetup/install/files/lib/system/moderation/queue/report/UserModerationQueueReportHandler.class.php @@ -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()) ]); diff --git a/wcfsetup/install/files/lib/system/worker/SendNewPasswordWorker.class.php b/wcfsetup/install/files/lib/system/worker/SendNewPasswordWorker.class.php index e8e5fd5cd4..70edf06c00 100644 --- a/wcfsetup/install/files/lib/system/worker/SendNewPasswordWorker.class.php +++ b/wcfsetup/install/files/lib/system/worker/SendNewPasswordWorker.class.php @@ -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); } diff --git a/wcfsetup/install/files/lib/util/StringUtil.class.php b/wcfsetup/install/files/lib/util/StringUtil.class.php index 446dc98172..61ced27d2a 100644 --- a/wcfsetup/install/files/lib/util/StringUtil.class.php +++ b/wcfsetup/install/files/lib/util/StringUtil.class.php @@ -151,7 +151,7 @@ final class StringUtil { /** * Formats a numeric. * - * @param numeric $numeric + * @param number $numeric * @return string */ public static function formatNumeric($numeric) {