Skip to content

phpstan: Check tests - #24

Merged
dbu merged 2 commits into
php-http:1.xfrom
jtojnar:phpstan-tests
Aug 20, 2026
Merged

phpstan: Check tests#24
dbu merged 2 commits into
php-http:1.xfrom
jtojnar:phpstan-tests

Conversation

@jtojnar

@jtojnar jtojnar commented Aug 15, 2026

Copy link
Copy Markdown
Contributor
Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Related tickets extracted from #21
Documentation -
License MIT

What's in this PR?

Add tests directory to list ouf sources checked by PHPStan.

Why?

This will make it easier to notice discrepancies.

jtojnar added 2 commits July 22, 2026 11:46
We do not ignore any errors.

And it is better to specify it for individual errors with custom explanation for each.
If we introduce baseline, it should only contain universal errors.

https://phpstan.org/user-guide/baseline
This will make it easier to notice discrepancies.

Had to add some ignores to suppress errors from differences between versions.
@jtojnar jtojnar mentioned this pull request Aug 15, 2026
3 tasks
@dbu

dbu commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

yep, tests should also be sane. if you want to work on the issues reported by phpstan, happy to review pull requests. meanwhile i merge this.

we should also fix the lowest version build eventually, its a sign some minimum requirement is not accurate.

@dbu
dbu merged commit a9100c9 into php-http:1.x Aug 20, 2026
10 of 12 checks passed
@jtojnar
jtojnar deleted the phpstan-tests branch August 20, 2026 11:49
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.

2 participants