Skip to content
Snippets Groups Projects
Commit 39d16c8b authored by Florent Torregrosa's avatar Florent Torregrosa Committed by Florent Torregrosa
Browse files

Issue #3367502 by Grimreaper: Fatal error when using the Diff module

parent c5545db2
No related branches found
No related tags found
1 merge request!106Issue #3367502: Fatal error when using the Diff module
......@@ -63,6 +63,9 @@ class Attributes extends ArrayObject {
*/
public function &getClasses(): array {
$classes = &$this->offsetGet('class', []);
if (\is_string($classes)) {
$classes = \explode(' ', $classes);
}
$classes = \array_unique($classes);
return $classes;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment