Doc #80059 [Opn->Ver]: Lowercase true/false should be used in code examples
Edit report at https://bugs.php.net/bug.php?id=80059&edit=1
ID: 80059
Updated by: cmb@php.net
Reported by: t dot motylewski at gmail dot com
Summary: Lowercase true/false should be used in code examples
-Status: Open
+Status: Verified
Type: Documentation Problem
Package: Documentation problem
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
> According to PSR, [â¦]
PSR is irrelevant for the code examples in the PHP manual, since
these are supposed to follow the PEAR CS[1]; however, PEAR CS also
mandates that true, false and null must always be lowercase[2].
[1] <http://doc.php.net/tutorial/style.php>
[2] <https://pear.php.net/manual/en/standards.naming.php>
Previous Comments:
------------------------------------------------------------------------
[2020-09-04 11:51:44] t dot motylewski at gmail dot com
Description:
------------
---
From manual page: https://php.net/language.types.boolean
---
According to PSR, boolean values should be written lowercase, eg.
$foo = false;
and not
$foo = FLASE;
Right now in many places in docs uppercase values are used, which confuses new users.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=80059&edit=1
Thread (7 messages)