Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • fusiondirectory fusiondirectory
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 34
    • Issues 34
    • List
    • Boards
    • Service Desk
    • Milestones
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • fusiondirectory
  • fusiondirectoryfusiondirectory
  • Issues
  • #5955
Closed
Open
Created Feb 13, 2019 by Côme Chilliet@cchillietReporter

Use PHP7 array syntax

PHP now allows the [] syntax for arrays instead of array().

We should make the change and use this new syntax in FD, and adapt our code review profile to detect uses of the old syntax.

Advantages:

  • less verbose for small and empty arrays
  • clear indication that we are closing an array and not a function on multilines arrays
  • symmetry with new list syntax (in PHP 7.1)
Edited Feb 13, 2019 by Côme Chilliet
Assignee
Assign to
Time tracking