-
Notifications
You must be signed in to change notification settings - Fork 228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closes #6993: Add a condition to bailout #7251
Conversation
We have tests and phpstan checks failing |
7035084
to
f57c775
Compare
@jeawhanlee Yea, I've fixed the code, I did put the wrong variable in the check. 🙏 |
Coverage summary from CodacySee diff coverage on Codacy
Coverage variation details
Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: Diff coverage details
Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: See your quality gate settings Change summary preferencesCodacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more Footnotes
|
QA done: |
E2E Tests(lcp && llcssbg) are passing |
Description
Fixes #6993
It won't show a fatal error if the string is the wrong type.
Type of change
Detailed scenario
Refer to the issue.
Technical description
Documentation
This pull request includes a small but important change to the
inc/Engine/Optimization/RegexTrait.php
file. The change ensures that thehtml_replace
property is a string before checking if it is empty.inc/Engine/Optimization/RegexTrait.php
: Modified therestore_html_comments
method to check ifhtml_replace
is a string before verifying if it is empty.New dependencies
None
Risks
None
Mandatory Checklist
Code validation
Code style