xp-framework/rfc

Deprecate array() syntax

thekid opened this issue · 0 comments

Scope of Change

This RFC suggests deprecating the array() syntax.

Rationale

Short array syntax was introduced with PHP 5.4 and has no downsides. Have one way of writing stuff is better!

Functionality

The long array syntax will be deprecated:

  • Inside code - by updating the coding standards document
  • Inside annotations - by removing support for it

Security considerations

None

Speed impact

Faster for annotations.

Dependencies

XP8

Related documents