Follow-up to #2457781: Use Utility\Html class instead of Utility\String for decodeEntities() function
Problem/Motivation
#2454447: Split Utility\String class to support PHP 7 (String is a reserved word) deprecated all the functions in Utility/String.
Proposed resolution
Remove definition of String after Drupal 8 beta 10.
Remaining tasks
- Patch
- Review
User interface changes
None
API changes
None
| Comment | File | Size | Author |
|---|---|---|---|
| #30 | 2458387-removestringclass-30.patch | 3.79 KB | stefan.r |
| #27 | 2458387-php7fix-27.patch | 7.5 KB | stefan.r |
Comments
Comment #1
alexpottLet's remove the class in one go.
Comment #2
alexpottRemoving the class in one go means that the bc layer hangs around for longer which is good for contrib.
Comment #3
andypostComment #4
stefan.r commentedComment #6
anksy commentedComment #8
stefan.r commentedDisregard #4, seems I may have run a faulty sed regex there!
Comment #10
stefan.r commentedComment #12
stefan.r commentedComment #14
stefan.r commentedComment #15
tim.plunkettI think this was intended to be postponed on #2457887: Use Utility\SafeMarkup class instead of Utility\String for placeholder(), checkPlain(),format() functions. This is *only* supposed to remove the class itself.
Comment #17
andypostComment #18
stefan.r commentedOn both #2457781: Use Utility\Html class instead of Utility\String for decodeEntities() function and #2457887: Use Utility\SafeMarkup class instead of Utility\String for placeholder(), checkPlain(),format() functions then I guess. Even after resolving conflicts between these and applying them there are still going to be some stray unused "use Utility/String" statements as well.
Seems like this patch accidently rolled all of these 3 issues into 1 big patch :)
Comment #19
berdirChanging parent, so all these issues are visible in the php7 meta issue.
Comment #20
andypostComment #21
stefan.r commentedThis will require a reroll after #2457781: Use Utility\Html class instead of Utility\String for decodeEntities() function still so we can get rid of any stray unused "use Utility/String" statements...
Comment #22
alexpottThis should only be done after the next beta to give contrib and custom time to update their code.
Comment #23
stefan.r commentedComment #24
stefan.r commentedChange record is here: https://www.drupal.org/node/2457593
Comment #25
stefan.r commentedLooks like unused "use Utility/String" statements are being removed here: #2462151: Remove unused Utility\String use statements
Comment #26
stefan.r commentedJust so PHP7 doesn't choke on the next Drupal 8 beta, what about this as a stop-gap solution before we remove the class entirely?
Comment #27
stefan.r commentedwhitespace fix
Comment #28
andypostPHP 7-dev does not have this methods, so just remove the file and postpone the issue
Comment #29
alexpottAnd as long as we don't use the class - which we're not then PHP7 will run D8 just fine.
Comment #30
stefan.r commentedAh never mind then, I thought the mere class definition would be problematic!
Comment #31
stefan.r commentedComment #32
andypostprobably it's time
Comment #34
rpayanmComment #35
alexpottNope - not until after the next beta please - which is 29th April... https://groups.drupal.org/node/466823
Comment #36
hussainwebThe patch still applies, and the beta10 is out. I am setting it to back to RTBC as per #34.
Comment #37
webchickYep, sounds good.
Committed and pushed to 8.0.x. Thanks!