See Change record. "String" will be a reserved word in PHP 7. The class \Drupal\Component\Utility\String is removed (see #2458387: Remove Utility\String class).
Replace calls to \Drupal\Component\Utility\String with calls to \Drupal\Component\Utility\SafeMarkup.

Side note: the Feeds Target classes should be renamed as well, but that could be handled in an other issue.

Patch will follow.

Comments

megachriz’s picture

Status: Active » Needs review
StatusFileSize
new16.2 KB

Status: Needs review » Needs work

The last submitted patch, 1: feeds8-replace-String-with-SafeMarkup-2481955-1.patch, failed testing.

twistor’s picture

Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

newyork1’s picture

just wanted to add this for documentation

https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Component%21Util...

Deprecated

Will be removed before Drupal 9.0.0. Use the appropriate sanitization functions or the theme and render systems so that the output can can be themed, escaped, and altered properly.