feediron / ttrss_plugin-feediron

Evolution of ttrss_plugin-af_feedmod
https://discourse.tt-rss.org/t/plugin-update-feediron-v1-2-0/2018
MIT License
204 stars 34 forks source link

Latest merge of "wip-phpstan-level6" in TT-RSS breaks plugin feediron #175

Closed meyca closed 2 years ago

meyca commented 2 years ago

Expected Behavior

Plugin works with latest version of TT-RSS

Current Behavior

After updating TT-RSS to latest commit including the "wip-phpstan-level6" branch I get a fatal error after login:

PHP Fatal error: Declaration of Feediron::csrf_ignore($method) must be compatible with IHandler::csrf_ignore(string $method): bool in /var/www/html/tt-rss/plugins.local/feediron/init.php on line 54

The updater throws the same error.

Steps to Reproduce

Update to latest TT-RSS.

Failure Information (for bugs)

PHP Fatal error: Declaration of Feediron::csrf_ignore($method) must be compatible with IHandler::csrf_ignore(string $method): bool in /var/www/html/tt-rss/plugins.local/feediron/init.php on line 54

Context

The branch referenced above includes various updates to the plugin interface. s. https://community.tt-rss.org/t/heads-up-ongoing-attempt-to-comply-with-phpstan-rule-level-6/5046