]> git.mxchange.org Git - friendica.git/blobdiff - src/BaseEntity.php
Add previous exception to unexpected worker exception logging
[friendica.git] / src / BaseEntity.php
index 8e8938febc51be2e975ee26a794e3121db9a04a8..065d100fa3245e4332c4842c3c3cfa3fc15ee2f1 100644 (file)
@@ -55,14 +55,14 @@ abstract class BaseEntity extends BaseDataTransferObject
        }
 
        /**
-        * @param $name
+        * @param mixed $name
         * @return bool
         * @throws HTTPException\InternalServerErrorException
         */
-       public function __isset($name)
+       public function __isset($name): bool
        {
                if (!property_exists($this, $name)) {
-                       throw new HTTPException\InternalServerErrorException('Unknown property ' . $name . ' in Entity ' . static::class);
+                       throw new HTTPException\InternalServerErrorException('Unknown property ' . $name . ' of type ' . gettype($name) . ' in Entity ' . static::class);
                }
 
                return !empty($this->$name);