Improve type hints
authorMatthias Schmidt <gravatronics@live.com>
Sat, 30 Jul 2016 14:53:59 +0000 (16:53 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sat, 30 Jul 2016 14:59:03 +0000 (16:59 +0200)
wcfsetup/install/files/lib/data/media/MediaAction.class.php
wcfsetup/install/files/lib/system/user/notification/UserNotificationHandler.class.php

index 0c40ecabcc5d817c7d9f97b0d45ac5bb38188bf6..a3851e23d9d57017bb1618b0cfaeb56654754ffb 100644 (file)
@@ -104,7 +104,7 @@ class MediaAction extends AbstractDatabaseObjectAction implements ISearchAction,
        /**
         * Returns the data of the media file to be returned by AJAX requests.
         * 
-        * @param       object          $media          media files whose data will be returned
+        * @param       Media|ViewableMedia     $media          media files whose data will be returned
         * @return      string[]
         */
        protected function getMediaData($media) {
index 0f5d3bc2e2380822689421dd18bebab6204692fc..09105cbaa3a32d967249170833c0290594bcd9b1 100644 (file)
@@ -615,10 +615,11 @@ class UserNotificationHandler extends SingletonFactory {
        }
        
        /**
-        * Returns object type by name.
+        * Returns the processor of the object type with the given name or `null`
+        * if no such processor exists
         * 
         * @param       string          $objectType
-        * @return      object
+        * @return      IUserNotificationObjectType|null
         */
        public function getObjectTypeProcessor($objectType) {
                if (isset($this->availableObjectTypes[$objectType])) {