Skip to content

fix: Use STREAM_FILTER_WRITE in prependStreamFilterOnWrite method#577

Merged
nyamsprod merged 1 commit into
thephpleague:masterfrom
zigzagdev:fix/replace-right-string
May 28, 2026
Merged

fix: Use STREAM_FILTER_WRITE in prependStreamFilterOnWrite method#577
nyamsprod merged 1 commit into
thephpleague:masterfrom
zigzagdev:fix/replace-right-string

Conversation

@zigzagdev

Copy link
Copy Markdown
Contributor

What I have done

prependStreamFilterOnWrite() was incorrectly using STREAM_FILTER_READ instead of STREAM_FILTER_WRITE when calling $this->document->prependFilter().

This caused the filter to be applied to the read stream instead of the write stream.

@nyamsprod nyamsprod merged commit 5cb6fe1 into thephpleague:master May 28, 2026
9 checks passed
@zigzagdev zigzagdev deleted the fix/replace-right-string branch May 28, 2026 13:18
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