mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-08 00:04:27 +02:00
fix 17 PHPStan errors
This commit is contained in:
parent
459ad05137
commit
c1653877fb
4 changed files with 62 additions and 62 deletions
|
@ -279,7 +279,7 @@ class Processor
|
|||
$uri = $this->getUri($post);
|
||||
|
||||
if ($uri_id = $this->fetchUriId($uri, $uid)) {
|
||||
return $uri_id;
|
||||
return (int) $uri_id;
|
||||
}
|
||||
|
||||
if (empty($post->record)) {
|
||||
|
@ -322,7 +322,7 @@ class Processor
|
|||
$this->logger->warning('Fetched post was not inserted', ['guid' => $item['guid'], 'uri' => $item['uri']]);
|
||||
}
|
||||
|
||||
return $this->fetchUriId($uri, $uid);
|
||||
return (int) $this->fetchUriId($uri, $uid);
|
||||
}
|
||||
|
||||
private function getHeaderFromJetstream(stdClass $data, int $uid, int $protocol = Conversation::PARCEL_JETSTREAM): array
|
||||
|
@ -860,7 +860,7 @@ class Processor
|
|||
$this->logger->debug('Post with extid exists', ['uri' => $uri]);
|
||||
return $reply['uri-id'];
|
||||
}
|
||||
return 0;
|
||||
return '0';
|
||||
}
|
||||
|
||||
private function getPostUids(string $uri, bool $with_public_user): array
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue