I'm trying to install the module on a D8.1 installation of mine.
However, when trying to do so, I get following error message in my php log:
Cannot use Drupal\Component\Utility\String as String because 'String' is a special class name in /modules/contrib/disable_messages/disable_messages.module on line 8

It is cause because some classes/interfaces got renamed to support PHP7, see #2457593.

I'll include a patch that adapts to the mentioned changes.

Comments

dpacassi created an issue. See original summary.

dpacassi’s picture

Issue summary: View changes
dpacassi’s picture

StatusFileSize
new687 bytes

See attached my patch.

anish_zyxware’s picture

Status: Active » Needs review
anish.a’s picture

StatusFileSize
new733 bytes

The patch no longer applies. New patch is attached.

  • anish.a committed a1b04de on 8.x-1.x
    Issue #2713205 by dpacassi, anish.a: Cannot use Drupal\Component\Utility...
anish_zyxware’s picture

Status: Needs review » Fixed

Merged the code.

Status: Fixed » Closed (fixed)

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