Remove overly strict type-hint in ActivityPub\Transmission::createCachedActivityFromItem

- Fix "Return value of Friendica\Protocol\ActivityPub\Transmitter::createCachedActivityFromItem() must be of the type array, bool returned" error
This commit is contained in:
Hypolite Petovan 2022-07-02 22:16:46 -04:00
parent e6feed65bf
commit 181c142bb4

View File

@ -1190,10 +1190,10 @@ class Transmitter
* *
* @param integer $item_id Item id * @param integer $item_id Item id
* @param boolean $force Force new cache entry * @param boolean $force Force new cache entry
* @return array with the activity * @return array|false activity or false on failure
* @throws \Exception * @throws \Exception
*/ */
public static function createCachedActivityFromItem(int $item_id, bool $force = false): array public static function createCachedActivityFromItem(int $item_id, bool $force = false)
{ {
$cachekey = 'APDelivery:createActivity:' . $item_id; $cachekey = 'APDelivery:createActivity:' . $item_id;