Closes #973 Use short array syntax#995
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR modernizes the codebase by replacing the deprecated long array syntax array() with the modern short array syntax [] and updates PHPCS configuration to enforce this practice. The change improves code readability and consistency while aligning with modern PHP standards.
- Updates PHPCS configuration to disallow long array syntax
- Systematically replaces
array()with[]throughout the codebase - Modernizes array initialization and parameter passing
Reviewed Changes
Copilot reviewed 41 out of 42 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| phpcs.xml | Adds rule to disallow long array syntax |
| Multiple PHP files | Converts array declarations from array() to [] syntax |
Coverage summary from CodacySee diff coverage on Codacy
Coverage variation details
Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: Diff coverage details
Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: See your quality gate settings Change summary preferences |
Description
Fixes #973
Type of change
Detailed scenario
What was tested
n/a
How to test
n/a
Technical description
Documentation
Mandatory Checklist
Code validation
Code style