Skip to content

Commit

Permalink
helpers/FeedReader: Fix SimplePie::set_file_class() deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
jtojnar committed Nov 23, 2024
1 parent f71ce75 commit 4427e8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/FeedReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function __construct(
WebClient::class => $webClient,
]);

$this->simplepie->set_file_class(SimplePieFileGuzzle::class);
$this->simplepie->get_registry()->register(\SimplePie\File::class, SimplePieFileGuzzle::class, true);
$this->simplepie->set_autodiscovery_level(SimplePie::LOCATOR_AUTODISCOVERY | SimplePie::LOCATOR_LOCAL_EXTENSION | SimplePie::LOCATOR_LOCAL_BODY);
$this->simplepie->set_useragent($webClient->getUserAgent());
}
Expand Down

0 comments on commit 4427e8e

Please sign in to comment.