Skip to content

Array standard non-conformance errors are not reported #176

@jaymcp

Description

@jaymcp

Describe the bug
Big Bite enforce short array syntax ([]) and disallow long array syntax (array()), but this is not reported correctly.

To Reproduce
Create a PHP file containing some arrays in a mix of short and long formats. Run PHPCS against this file using our standard. No errors regarding syntax will be reported.

Expected behaviour
Arrays declared using long syntax array() should be reported as erroneous.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions