Problem/Motivation

When trying to use the Diff module. I got a fatal error. Because the styles attribute is at some point a string and not an array.

Proposed resolution

In Attributes utility getClasses()

    if (\is_string($classes)) {
      $classes = \explode(' ', $classes);
    }

I will provide a patch in the coming days.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Grimreaper created an issue. See original summary.

grimreaper’s picture

  • Grimreaper committed 39d16c8b on 5.0.x
    Issue #3367502 by Grimreaper: Fatal error when using the Diff module
    
grimreaper’s picture

Assigned: grimreaper » Unassigned
Status: Active » Fixed

Status: Fixed » Closed (fixed)

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