Suppress warnings about incompatible return type
authorMatthias Schmidt <gravatronics@live.com>
Fri, 29 Jul 2016 19:39:23 +0000 (21:39 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Fri, 29 Jul 2016 19:39:23 +0000 (21:39 +0200)
wcfsetup/install/files/lib/data/acp/session/virtual/ACPSessionVirtualAction.class.php
wcfsetup/install/files/lib/data/moderation/queue/ModerationQueueAction.class.php

index 5146680b9745b76ae24f7bac807661d708c809a0..680b42de9cb3a35aadc784cf2d21c6f523b945ff 100644 (file)
@@ -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();
        }
 }
index 6440a0ec1e8ba5771a9e219dc3fbda801a8e5634..555fd50b7a44bf4d411b5a531bf9760c788529c3 100644 (file)
@@ -50,6 +50,7 @@ class ModerationQueueAction extends AbstractDatabaseObjectAction {
                        $this->parameters['data']['lastChangeTime'] = TIME_NOW;
                }
                
+               /** @noinspection PhpIncompatibleReturnTypeInspection */
                return parent::create();
        }