Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
phpcs fails on the following code:
$plugin_derivatives[$machine_name] = array(
'id' => $base_plugin_id . PluginBase::DERIVATIVE_SEPARATOR . $machine_name,
'label' => $this->t('Search api view: %view_name, display: %display_title', ['%view_name' => $view->label(), '%display_title' => $display_info['display_title']]),
'description' => $this->t('Provides a facet source.'),
'view_id' => $view->id(),
'view_display' => $name,
) + $base_plugin_definition;
It works when changing the array syntax to a short array syntax.
Comments
Comment #2
borisson_This was a duplicate of #2607328: Notice: Undefined index: parenthesis_closer in ArraySniff.php on line 162.