I won't bother writing an IS for something this trivial: we are passing arguments something truly ugly. Fixed.
| Comment | File | Size | Author |
|---|---|---|---|
| #13 | interdiff.txt | 1.88 KB | olli |
| #13 | drupal-2077599-13.patch | 3 KB | olli |
| #4 | 2077599_4.patch | 2.94 KB | chx |
| #2 | 2077599_2.patch | 2.83 KB | chx |
| XssSplit.patch | 12.6 KB | chx |
Comments
Comment #2
chx commentedAh, that one forgot to flip the tags so it'll fail. Here's another version. Alternatively, we could use __CLASS__ and put a final on the whole enchilada. That would look sane to me...
Comment #4
chx commentedEh, visibility.
Comment #5
chx commentedComment #6
tim.plunkettDoes static not work in the closure? Does get_called_class respect LSB?
Comment #7
chx commentedstatic in closure? Check http://3v4l.org/G9uLh -- not before 5.4, no. Regarding LSB, http://3v4l.org/42X2U it works since 5.3.0.
Comment #8
olli commentedLets remove $store.
Comment #9
larowlanMarked #2104337: Don't rely on internal function statics in \Drupal\Component\Utility\Xss::split() duplicate of this
Comment #10
chx commentedSure this is not ajax....
Comment #11
dawehnerWe should document why we need this $class part here and we could remove it once we depend on 5.4
Comment #12
chx commentedDo we really? I mean, 5.4 allows you to bind $tihis to the closure for sure but you'd need the classname of it as you are doing a static call. The only 5.4 win would be that you can run the get class inside the closure, that makes no difference IMO.
Comment #13
olli commentedHow about this?
Comment #14
dawehnerI really like that!
Comment #15
alexpottCommitted ebad2e6 and pushed to 8.x. Thanks!