Re: Change &null; from NULL to null, etc.

From: Date: Thu, 01 Dec 2016 16:57:35 +0000
Subject: Re: Change &null; from NULL to null, etc.
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969386409@lists.php.net to get a copy of this message
W dniu 25.11.2016 o 15:16, Christoph M. Becker pisze:
Hi! Since a long time there is a patch from Marco Pivetta in the online editor suggesting to change some initializers from &null; to null, and I wonder if we should change the definition of the entities &null;, &false; and &true; from upper case to lower case. While constants are usually written all upper case, these three reserved words are commonly spelled in lower case, what is required by PSR-2[1] and the PEAR coding standards[2].
I'm definitely accustomed to them being uppercased in the manual (even though I don't write them such in code - just like the majority, I think), but I could live with it. I'm not entirely if it will cause readers' confusion, but you have my +1 if you would like to proceed it further (more opinions would be, however, helpful here).
Thoughts? [1] <http://www.php-fig.org/psr/psr-2/#2-5-keywords-and-true-false-null> [2] <https://pear.php.net/manual/en/standards.naming.php>


« previous php.doc (#969386409) next »