Skip to content
Snippets Groups Projects
Commit 2b3d525d authored by Sascha Grossenbacher's avatar Sascha Grossenbacher Committed by Mark Fullmer
Browse files

Issue #3428696: TypeError: Unsupported operand types: array + null in LinkGenerator->generate()

parent 231c615b
No related branches found
No related tags found
3 merge requests!78Issue #3472672: Fix the issues reported by PHP_CodeSniffer,!59Revert "Issue #2900766 by rubendello: Not all autocomplete values are...,!46Add array type cast for attributes option
Pipeline #121099 passed with warnings
......@@ -130,7 +130,7 @@ class LinkitFormatter extends LinkFormatter {
if (!empty($parsed_url['fragment'])) {
$url->setOption('fragment', $parsed_url['fragment']);
}
$attributes = $url->getOption('attributes');
$attributes = (array) $url->getOption('attributes');
// Restore rel and target options.
if (!empty($settings['rel'])) {
$attributes['rel'] = $settings['rel'];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment