Fix fatal execution path for found Network::get() parameter execption

This commit is contained in:
nupplaPhil 2020-03-07 13:39:09 +01:00 committed by Hypolite Petovan
parent c51128ad20
commit 1998b7811b
3 changed files with 6 additions and 6 deletions

View file

@ -87,7 +87,7 @@ class ActivityPub
* @return array
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
*/
public static function fetchContent($url, $uid = 0)
public static function fetchContent(string $url, int $uid = 0)
{
if (!empty($uid)) {
return HTTPSignature::fetch($url, $uid);

View file

@ -681,7 +681,7 @@ class Processor
* @return string fetched message URL
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
*/
public static function fetchMissingActivity($url, $child = [])
public static function fetchMissingActivity(string $url, array $child = [])
{
if (!empty($child['receiver'])) {
$uid = ActivityPub\Receiver::getFirstUserFromReceivers($child['receiver']);