From 52ec25051820d6e6bbd7d44873705823e0de7add Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Fri, 29 Jul 2016 21:39:23 +0200 Subject: [PATCH] Suppress warnings about incompatible return type --- .../data/acp/session/virtual/ACPSessionVirtualAction.class.php | 1 + .../lib/data/moderation/queue/ModerationQueueAction.class.php | 1 + 2 files changed, 2 insertions(+) diff --git a/wcfsetup/install/files/lib/data/acp/session/virtual/ACPSessionVirtualAction.class.php b/wcfsetup/install/files/lib/data/acp/session/virtual/ACPSessionVirtualAction.class.php index 5146680b97..680b42de9c 100644 --- a/wcfsetup/install/files/lib/data/acp/session/virtual/ACPSessionVirtualAction.class.php +++ b/wcfsetup/install/files/lib/data/acp/session/virtual/ACPSessionVirtualAction.class.php @@ -38,6 +38,7 @@ class ACPSessionVirtualAction extends AbstractDatabaseObjectAction { if (!isset($this->parameters['data']['ipAddress'])) $this->parameters['data']['ipAddress'] = UserUtil::getIpAddress(); if (!isset($this->parameters['data']['userAgent'])) $this->parameters['data']['userAgent'] = UserUtil::getUserAgent(); + /** @noinspection PhpIncompatibleReturnTypeInspection */ return parent::create(); } } diff --git a/wcfsetup/install/files/lib/data/moderation/queue/ModerationQueueAction.class.php b/wcfsetup/install/files/lib/data/moderation/queue/ModerationQueueAction.class.php index 6440a0ec1e..555fd50b7a 100644 --- a/wcfsetup/install/files/lib/data/moderation/queue/ModerationQueueAction.class.php +++ b/wcfsetup/install/files/lib/data/moderation/queue/ModerationQueueAction.class.php @@ -50,6 +50,7 @@ class ModerationQueueAction extends AbstractDatabaseObjectAction { $this->parameters['data']['lastChangeTime'] = TIME_NOW; } + /** @noinspection PhpIncompatibleReturnTypeInspection */ return parent::create(); } -- 2.20.1