Skip to content

Fixes before phpstan2#957

Merged
jtojnar merged 19 commits intosimplepie:masterfrom
FreshRSS:fixes-before-phpstan2
Jan 18, 2026
Merged

Fixes before phpstan2#957
jtojnar merged 19 commits intosimplepie:masterfrom
FreshRSS:fixes-before-phpstan2

Conversation

@Alkarex
Copy link
Contributor

@Alkarex Alkarex commented Nov 25, 2025

Since #939 has been waiting for a long time, here is a PR still using PHPStan 1 (so it should be easier to merge), but fixing many problems caught by PHPStan 2.

In other words, this PR is a subset of #939

Alkarex and others added 18 commits September 14, 2025 16:27
PHPStan has improved a lot since version 1.12 used by SimplePie until now.
Take advantage of explicit PHPStan phpVersion range.
Define explicit range of minimum and maximum PHP version supported. Useful e.g. for function signatures, which have changed over time
https://phpstan.org/config-reference#phpversion
Do not run PHPStan for PHP < 7.4 but the tests are covered by phpVersion min, so it is actually enough to run PHPStan once on any supported PHP version.
Cannot support PHPUnit >= 10 at the same time as PHP 7.2.
Co-authored-by: Jan Tojnar <jtojnar@gmail.com>
Since simplepie#939 has been waiting for a long time, here is a PR still using PHPStan 1 (so it should be easier to merge), but fixing many problems caught by PHPStan 2.
@Art4 Art4 added this to the 1.10.0 milestone Jan 18, 2026
@jtojnar jtojnar merged commit d060f04 into simplepie:master Jan 18, 2026
10 checks passed
@jtojnar
Copy link
Member

jtojnar commented Jan 18, 2026

Thanks.

@Alkarex Alkarex deleted the fixes-before-phpstan2 branch January 18, 2026 10:47
Alkarex added a commit to FreshRSS/simplepie that referenced this pull request Jan 18, 2026
Alkarex added a commit to Alkarex/FreshRSS that referenced this pull request Jan 18, 2026
Alkarex added a commit to FreshRSS/FreshRSS that referenced this pull request Jan 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants