Skip to content

Files

Latest commit

 

History

History
19 lines (11 loc) · 658 Bytes

PHPCompatibility.Syntax.NewFunctionArrayDereferencing.md

File metadata and controls

19 lines (11 loc) · 658 Bytes

Pattern: Use of function array dereferencing

Issue: -

Description

Detects function array dereferencing as introduced in PHP 5.4.

PHP 5.4 supports direct array dereferencing on the return of a method/function call.

As of PHP 7.0, this also works when using curly braces for the dereferencing. While unclear, this most likely has to do with the Uniform Variable Syntax changes.

PHP version 5.4 PHP version 7.0

Further Reading