Skip to content

Commit 4427e8e

Browse files
committed
helpers/FeedReader: Fix SimplePie::set_file_class() deprecation
simplepie/simplepie@5430a1e
1 parent f71ce75 commit 4427e8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/helpers/FeedReader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function __construct(
3030
WebClient::class => $webClient,
3131
]);
3232

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

0 commit comments

Comments
 (0)