Skip to content

Files

Latest commit

 

History

History
15 lines (8 loc) · 508 Bytes

PHPCompatibility.Operators.NewShortTernary.md

File metadata and controls

15 lines (8 loc) · 508 Bytes

Pattern: Use of short ternary operator

Issue: -

Description

Detects usage of the short ternary (elvis) operator as introduced in PHP 5.3.

Performs checks on ternary operators, specifically that the middle expression is not omitted for versions that don't support this.

PHP version 5.3

Further Reading