Skip to content

Files

Latest commit

 

History

History
14 lines (7 loc) · 459 Bytes

Universal.Arrays.DuplicateArrayKey.md

File metadata and controls

14 lines (7 loc) · 459 Bytes

Pattern: Duplicate key in array declaration

Issue: -

Description

Detects duplicate array keys in array declarations.

The rule will make a distinction between keys which will be duplicate in all PHP version and (numeric) keys which will only be a duplicate key in PHP < 8.0 or PHP >= 8.0.

Further Reading