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:
parent
e6feed65bf
commit
181c142bb4
1 changed files with 2 additions and 2 deletions
|
@ -1190,10 +1190,10 @@ class Transmitter
|
|||
*
|
||||
* @param integer $item_id Item id
|
||||
* @param boolean $force Force new cache entry
|
||||
* @return array with the activity
|
||||
* @return array|false activity or false on failure
|
||||
* @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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue