mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-13 03:54:04 +02:00
Fix deprecations (#4636)
* Fix PHP 8.4 deprecation Implicitly marking parameter as nullable is deprecated, the explicit nullable type must be used instead * [github workflow] Add additional php versions
This commit is contained in:
@@ -443,7 +443,7 @@ class ItakuBridge extends BridgeAbstract
|
||||
return $data['owner'];
|
||||
}
|
||||
|
||||
private function getPost($id, array $metadata = null)
|
||||
private function getPost($id, ?array $metadata = null)
|
||||
{
|
||||
if (isset($metadata) && count($metadata['gallery_images']) < $metadata['num_images']) {
|
||||
$metadata = null; //force re-fetch of metadata
|
||||
@@ -515,7 +515,7 @@ class ItakuBridge extends BridgeAbstract
|
||||
];
|
||||
}
|
||||
|
||||
private function getCommission($id, array $metadata = null)
|
||||
private function getCommission($id, ?array $metadata = null)
|
||||
{
|
||||
$url = self::URI . '/api/commissions/' . $id . '/?format=json';
|
||||
$uri = self::URI . '/commissions/' . $id;
|
||||
|
Reference in New Issue
Block a user