Variable::export should export use short-hand array syntax

Created on 9 April 2018, about 7 years ago
Updated 13 September 2024, 8 months ago

Problem/Motivation

While the docblock in db tools says:

    // The template contains an instruction for the file to be ignored by PHPCS.
    // This is because the files can be huge and coding standards are
    // irrelevant.

There was a report of cs violations anyway: #2959514: Replace array() with [] to improve the coding standards.

Can't see a reason why this should export short-hand array syntax.

Proposed resolution

Update this method to export short-hand arrays.

Remaining tasks

Make followup, see #11
Review

User interface changes

API changes

Data model changes

📌 Task
Status

Needs work

Version

11.0 🔥

Component
Other 

Last updated 1 day ago

Created by

🇦🇺Australia Sam152

Live updates comments and jobs are added and updated live.
  • Coding standards

    It involves compliance with, or the content of coding standards. Requires broad community agreement.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024