Skip to content

Commit

Permalink
Fix wrong type hint (#678)
Browse files Browse the repository at this point in the history
`SimplePie_Cache` also exists but is something else.
This created errors in IDE.
For instance, `SimplePie_Cache::load()` does not exist, but `SimplePie_Cache_Base::load()` does.

Downtream PR: FreshRSS/FreshRSS#3578
  • Loading branch information
Alkarex authored Apr 11, 2021
1 parent 83bf7b3 commit ea5dcce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/SimplePie.php
Original file line number Diff line number Diff line change
Expand Up @@ -1521,7 +1521,7 @@ public function init()
* Fetch the data via SimplePie_File
*
* If the data is already cached, attempt to fetch it from there instead
* @param SimplePie_Cache|false $cache Cache handler, or false to not load from the cache
* @param SimplePie_Cache_Base|false $cache Cache handler, or false to not load from the cache
* @return array|true Returns true if the data was loaded from the cache, or an array of HTTP headers and sniffed type
*/
protected function fetch_data(&$cache)
Expand Down

0 comments on commit ea5dcce

Please sign in to comment.