]> git.mxchange.org Git - friendica.git/blobdiff - src/BaseEntity.php
Merge pull request #13161 from annando/bluesky-activities
[friendica.git] / src / BaseEntity.php
index 2ee22b1bb0da93056aa1b7d27e0a5a6f1fb20fb7..dca1af4f627b2e29a5494af84bd2666496ce63de 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -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);