Repository navigation
Update php-css-parser to fix PHP 8.4+ deprecations in emails - #3194
Open
faisalahammad wants to merge 1 commit into
Open
faisalahammad wants to merge 1 commit into
faisalahammad wants to merge 1 commit into
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes Proposed in this Pull Request
sabberworm/php-css-parserincomposer.lockfrom v8.5.1 to v8.9.0. Only the lock file changes.CssInliner) uses this parser to inline the CSS in the HTML emails. On PHP 8.4 and newer, v8.5.1 logs these deprecations every time an email is styled:^8.4.0range thatpelago/emogrifier7.2 asks for. It still supports PHP 7.4, socomposer.jsonand the other packages do not change.Testing Instructions
WP_DEBUGandWP_DEBUG_LOGtotrue.trunk, trigger any HTML email, for example submit a job as a guest so the "New Job Listing Submitted" admin email is sent.wp-content/debug.logand see the threeSabberworm\CSS\...lines above.composer install, emptydebug.log, and trigger the same email again.Sabberwormlines indebug.log, and the email looks the same as before.Automated checks I ran:
CssInlinerscript on PHP 8.6: 3 deprecations with v8.5.1, none with v8.9.0. The HTML output is the same.Release Notes