Skip to content

Fix error message property in Mpdf.php#2043

Open
cebe wants to merge 1 commit into
mpdf:developmentfrom
cebe:patch-1
Open

Fix error message property in Mpdf.php#2043
cebe wants to merge 1 commit into
mpdf:developmentfrom
cebe:patch-1

Conversation

@cebe

@cebe cebe commented Aug 15, 2024

Copy link
Copy Markdown

Exception thrown on invalid UTF-8 input asks about property in_charset. The actual property name is charset_in:

https://github.com/cebe/mpdf/blob/dfb5346e2e7ffdb4b0f6d588e94629ad52fb3466/src/Mpdf.php#L529

Exception thrown on invalid UTF-8 input asks about property `in_charset`. The actual property name is `charset_in`.
@cebe cebe changed the title Fix error message property in in Mpdf.php Fix error message property in Mpdf.php Aug 15, 2024
@finwe

finwe commented Aug 16, 2024

Copy link
Copy Markdown
Member

Thanks for a PR. Please add a unit test covering this change.

@chezinut

Copy link
Copy Markdown

@finwe it looks like that is fix of mistype... and it stuck for ~2years

@finwe

finwe commented Jun 22, 2026

Copy link
Copy Markdown
Member

@chezinut It apparently was not critical enough for anybody to be fixed according to guidelines ~2years back. If it is for you, feel free to propose a PR with the test present.

When the configuration property names change, this is a candidate to be overlooked again, so, with a test, that could be prevented.

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.

3 participants