|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #72415 PSR2 VS
Submitted: 2016-06-15 14:57 UTC Modified: 2016-06-15 15:22 UTC
From: nicolas dot charvet at imie dot fr Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: 5.6.22 OS:
Private report: No CVE-ID: None
 [2016-06-15 14:57 UTC] nicolas dot charvet at imie dot fr
From manual page:


the PSR2 seems asking to stop using the underscore in php variable declaration.

But documentation php are always references .

What is the proper documentation ?

Thank you.



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2016-06-15 15:22 UTC]
-Status: Open +Status: Not a bug
 [2016-06-15 15:22 UTC]
The documentation on is official and gives information about what is and is not permitted by the PHP language. Leading underscores are permitted.

The PSRs are "best practice" coding style guides that are developed by the community. PSR-2 discourages the use of leading underscores for class properties.
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Wed Oct 28 03:01:23 2020 UTC