use Drupal\Component\Utility\String as String was not used any where in printable.module file. So I deleted the line use Drupal\Component\Utility\String. below is the patch.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

suresh kumara created an issue. See original summary.

FlutterStack’s picture

singularo’s picture

Status: Active » Reviewed & tested by the community

This patch resolved a fatal error. Might be PHP7 specific

[Sat Jun 17 10:41:35.471570 2017] [:error] [pid 40] [client 172.20.0.2:35940] PHP Fatal error: Cannot use Drupal\\Component\\Utility\\String as String because 'String' is a special class name in /code/web/modules/contrib/printable/printable.module on line 8

step21’s picture

Would you also have to change the places where String is used to Html?

Nigel Cunningham’s picture

Applied in commit 3aaadc452106456c99e006b41ee59b6590315b80.

Thanks!

Nigel Cunningham’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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