From: Matthias Schmidt Date: Sat, 30 Jul 2016 14:53:59 +0000 (+0200) Subject: Improve type hints X-Git-Tag: 3.0.0_Beta_1~869 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2ca0ad992f0c3ec027ff33014a76607bd8dc583a;p=GitHub%2FWoltLab%2FWCF.git Improve type hints --- diff --git a/wcfsetup/install/files/lib/data/media/MediaAction.class.php b/wcfsetup/install/files/lib/data/media/MediaAction.class.php index 0c40ecabcc..a3851e23d9 100644 --- a/wcfsetup/install/files/lib/data/media/MediaAction.class.php +++ b/wcfsetup/install/files/lib/data/media/MediaAction.class.php @@ -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) { diff --git a/wcfsetup/install/files/lib/system/user/notification/UserNotificationHandler.class.php b/wcfsetup/install/files/lib/system/user/notification/UserNotificationHandler.class.php index 0f5d3bc2e2..09105cbaa3 100644 --- a/wcfsetup/install/files/lib/system/user/notification/UserNotificationHandler.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/UserNotificationHandler.class.php @@ -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])) {