Drupal.Arrays.Array.LongLineDeclaration complains about arrays in function parameter defaults

Created on 21 September 2024, 7 months ago

Problem/Motivation

The sniff complains about code like this:

      public function alpha($alpha_one, $alpha_two, $options = ['option_string' => 'cake', 'option_numeric' => 42, 'option_bool' => FALSE]) {

but there is no Drupal coding standard for arrays in a function defaults.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

8.3

Component

Review/Rules

Created by

🇬🇧United Kingdom joachim

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024