Skip to content

Fixes and cleanups from #826#938

Merged
jtojnar merged 10 commits intomasterfrom
wip/jtojnar/cleanups
Feb 7, 2026
Merged

Fixes and cleanups from #826#938
jtojnar merged 10 commits intomasterfrom
wip/jtojnar/cleanups

Conversation

@jtojnar
Copy link
Member

@jtojnar jtojnar commented Sep 12, 2025

Fixes various issues I noticed in #826 but did not make it into the PR.

Can be reviewed commit-by-commit.

@jtojnar jtojnar requested a review from Art4 September 12, 2025 07:43
@jtojnar jtojnar force-pushed the wip/jtojnar/cleanups branch 2 times, most recently from 9af9f8a to c01b35a Compare September 12, 2025 07:49
@Art4 Art4 added this to the 1.10.0 milestone Sep 12, 2025
`get_headers()` actually return `parsed_headers` property which we did not previously set.
…_url

Make it clearer what request it is from and match the getter method name.
It is slightly cleaner.
…ted_url

Make it clearer what request it is from and match the getter method name.
In 1.9.0, we extended `Sniffer` to take any `Response`, not just `File`, and had `Locator` pass it `Response`s. Unfortunately, `Sniffer` is not final so that change might have broken existing third-party subclasses only accepting `File`. (Though it will at least not fail with fatal contravariance error since PHP does not enforce Liskov Substitution Principle for constructors.)

Let’s go back to `Sniffer` only accepting `File`.
This should make it easier to parse for humans.
@jtojnar jtojnar force-pushed the wip/jtojnar/cleanups branch from c01b35a to dfb17a9 Compare January 18, 2026 08:33
@jtojnar
Copy link
Member Author

jtojnar commented Jan 18, 2026

Just rebased.

@jtojnar jtojnar merged commit dfb17a9 into master Feb 7, 2026
20 checks passed
@jtojnar jtojnar deleted the wip/jtojnar/cleanups branch February 7, 2026 22:35
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.

2 participants