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.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | cannot_use-2713205-5.patch | 733 bytes | anish.a |
Comments
Comment #2
dpacassiComment #3
dpacassiSee attached my patch.
Comment #4
anish_zyxware commentedComment #5
anish.a commentedThe patch no longer applies. New patch is attached.
Comment #7
anish_zyxware commentedMerged the code.