Add explicit `return null;` statements
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / lib / data / user / online / UserOnline.class.php
index 8ddb434c247243fd3cbbb123c91265da79584510..877b6a847295111b4fa3529d6fc45bd59da39c1b 100644 (file)
@@ -154,12 +154,12 @@ class UserOnline extends UserProfile
     /**
      * Returns the spider object
      *
-     * @return  Spider
+     * @return  Spider|null
      */
     public function getSpider()
     {
         if (!$this->spiderID) {
-            return;
+            return null;
         }
 
         if ($this->spider === null) {