alexdebril / rss-atom-bundle

RSS and Atom Bundle for Symfony
MIT License
139 stars 49 forks source link

Compatibility issue with newer version of the package feed-io #218

Open herihaja opened 8 months ago

herihaja commented 8 months ago

When using a newer version of feed-io, the current version of rss-atom-bundle throws an error. This occurs because the 'description' field is no longer present in the entity FeedIo\Feed\Item.

ttk commented 3 months ago

I ran into the same issue. The problem is that MockProvider::addItem() calls $item->setDescription() which is only available in debril/feed-io:~4.0. In debril/feed-io:>=5.0, it's been renamed to $item->setContent().

As a quick fix, you can just patch your local version so the mock feed renders. However, once you implement your custom feed provider, this should no longer be an issue.

Ideally, this bundle should be updated to work with the latest version of the debril/feed-io library.