Psalm indicates that DOMNode::nodeValue could be null, perhaps for entirely empty <style> elements.
If such are encountered during pre-processing, still remove them from the DOM, but don't append their contents to the CSS to be inlined with extra line-breaks.
Psalm indicates that
DOMNode::nodeValue
could benull
, perhaps for entirely empty<style>
elements.If such are encountered during pre-processing, still remove them from the DOM, but don't append their contents to the CSS to be inlined with extra line-breaks.