Needs work
Project:
Drupal core
Version:
main
Component:
filter.module
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
27 Oct 2025 at 16:11 UTC
Updated:
10 Dec 2025 at 22:09 UTC
Jump to comment: Most recent
Comments
Comment #3
damienmckennaThe MR simply returns early if the string is empty.
Comment #4
damienmckennaRelated: #3294680: PHP8.1 deprecation: str_replace(): Passing null to parameter #3
Comment #5
smustgrave commentedPossible to get a simple unit test around this
Comment #7
oily commentedAdded a unit test. Needs work.
Comment #8
harivansh commentedComment #9
harivansh commentedComment #10
oily commentedNow the test-only test output is:
Not sure if that error should be fixed? And a test failure should replace it..
Comment #11
smustgrave commentedLooking at the IS and MR appears to be doing more then described. If they're needed those other checks don't appear to be captured in tests.