Document type of event listener parameter `$eventObj`
authorMatthias Schmidt <gravatronics@live.com>
Sun, 2 Oct 2016 15:19:34 +0000 (17:19 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sun, 2 Oct 2016 15:19:34 +0000 (17:19 +0200)
wcfsetup/install/files/lib/system/event/listener/AbstractUserActionRenameListener.class.php
wcfsetup/install/files/lib/system/event/listener/AbstractUserMergeListener.class.php

index f2030062d5ab9add5fb0448246f1e069bb7ffe29..cd10f23e3aaa2c93eaed9f3b64ac654aab39afa2 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\system\event\listener;
+use wcf\data\user\UserAction;
 use wcf\system\WCF;
 
 /**
@@ -29,6 +30,8 @@ abstract class AbstractUserActionRenameListener implements IParameterizedEventLi
         * @inheritDoc
         */
        public function execute($eventObj, $className, $eventName, array &$parameters) {
+               /** @var UserAction $eventObj */
+               
                $userID = $eventObj->getObjects()[0]->userID;
                $username = $eventObj->getParameters()['data']['username'];
                
index 10254d098fd51411fddbf381579b3f2670302703..884dcdb388c050da35e55f557879df98fef2265a 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\system\event\listener;
+use wcf\acp\form\UserMergeForm;
 use wcf\system\database\util\PreparedStatementConditionBuilder;
 use wcf\system\WCF;
 
@@ -33,6 +34,8 @@ abstract class AbstractUserMergeListener implements IParameterizedEventListener
         * @inheritDoc
         */
        public function execute($eventObj, $className, $eventName, array &$parameters) {
+               /** @var UserMergeForm $eventObj */
+               
                foreach ($this->databaseTables as $databaseTable) {
                        if (!is_array($databaseTable)) {
                                $databaseTable = ['name' => $databaseTable];