<?php
/**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2022, the Friendica project
*
* @license GNU AGPL version 3 or any later version
*
}
/**
- * @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);