Skip to content

Assure DOMDocument::createTextNode() receives a string - #567

Merged
nyamsprod merged 1 commit into
thephpleague:masterfrom
serpentblade:patch-1
Sep 8, 2025
Merged

nyamsprod merged 1 commit into
thephpleague:masterfrom
serpentblade:patch-1

Conversation

@serpentblade

Copy link
Copy Markdown
Contributor

DOMDocument::createTextNode() raises a TypeError when receiving a non-string value. Cast to string to assure null or numeric values render correctly in HTML table.

DOMDocument::createTextNode() raises a TypeError when receiving a non-string value.  Cast to string to assure null or numeric values render correctly in HTML table.
@nyamsprod
nyamsprod merged commit be8fcb0 into thephpleague:master Sep 8, 2025
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