Skip to content

Merge: Fix wrong player_parent logic leading to invalid type#75

Merged
Alkarex merged 3 commits into
freshrssfrom
merge-fix-enclosure-player-type
May 25, 2026
Merged

Merge: Fix wrong player_parent logic leading to invalid type#75
Alkarex merged 3 commits into
freshrssfrom
merge-fix-enclosure-player-type

Conversation

@Alkarex
Copy link
Copy Markdown
Member

@Alkarex Alkarex commented May 25, 2026

PHP Fatal error: Uncaught TypeError:
SimplePie\Enclosure::__construct(): Argument #20 ($player) must be of type ?string, array given
in /opt/freshrss/lib/simplepie/simplepie/src/Enclosure.php:199

This happens when there is nourl parameter.

Example of feed:

Downstream issue:

Upstream PR:

Alkarex added 3 commits May 11, 2026 11:59
channels, duration were wrongly parsed as string instead of int.

```
PHP Fatal error:  Uncaught TypeError: SimplePie\Enclosure::__construct(): Argument #12 ($duration) must be of type ?int, string given in simplepie/src/Enclosure.php:199
```

And add tests (there were none for those attributes)

Downstream issue:
* FreshRSS/FreshRSS#8701
```
PHP Fatal error: Uncaught TypeError:
SimplePie\Enclosure::__construct(): Argument #20 ($player) must be of type ?string, array given
in /opt/freshrss/lib/simplepie/simplepie/src/Enclosure.php:199
```

This happens when there is no`url` parameter.

Example of feed:
* https://feeds.feedburner.com/crunchyroll/rss/anime?lang=deDE

Downstream issue:
* FreshRSS/FreshRSS#8892
@Alkarex Alkarex merged commit 9cbeedd into freshrss May 25, 2026
20 checks passed
@Alkarex Alkarex deleted the merge-fix-enclosure-player-type branch May 25, 2026 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant