Closed (fixed)
Project:
Drupal core
Version:
8.6.x-dev
Component:
base system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
4 Apr 2018 at 09:59 UTC
Updated:
20 Apr 2018 at 11:49 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
alexpottHere's a patch
Comment #3
alexpottGoing to handle instances of SafeMarkup mention without ::format here as well.
Comment #4
alexpottHere's a patch that addresses #2958429-7: Properly deprecate SafeMarkup::format() - thanks @andypost.
Comment #5
andypostwhy this hunk removed? I can't find similar test case for formattable markup
Comment #6
alexpott@andypost that assertion is a relic of the time when we had a list of safe strings. Fortunately we don’t have that anymore and the equivalent assertion would be nonsense - it’d be assertSame($arg instanceof SafeMarkupTestMarkup, $arg instanceof MarkupInterface).
The point of the test was to ensure $arg didn’t become safe due to the list.
Comment #7
andypostAha yes, we always escape arguments now
Comment #9
catchCommitted fdf37cf and pushed to 8.6.x. Thanks!