| Newsgroups |
php.doc.bugs |
| Message-ID |
<[email protected]> |
Edit report at https://bugs.php.net/bug.php?id=80059&edit=1
ID: 80059
Patch added by: [email protected]
Reported by: t dot motylewski at gmail dot com
Summary: Lowercase true/false should be used in code examples
Status: Verified
Type: Documentation Problem
Package: Documentation problem
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
The following pull request has been associated:
Patch Name: Fix issue with pt_BR not being updated
On GitHub: https://github.com/php/systems/pull/15
Patch: https://github.com/php/systems/pull/15.patch
Previous Comments:
------------------------------------------------------------------------
[2022-04-28 16:36:03] maghsodid at yahoo dot com
The following pull request has been associated:
Patch Name: Prepare for longer commit hashes
On GitHub: https://github.com/php/web-windows/pull/24
Patch: https://github.com/php/web-windows/pull/24.patch
------------------------------------------------------------------------
[2022-04-28 16:21:43] kinggorghenry at yahoo dot com
The following pull request has been associated:
Patch Name: Ignore externally managed and generated files
On GitHub: https://github.com/php/web-windows/pull/21
Patch: https://github.com/php/web-windows/pull/21.patch
------------------------------------------------------------------------
[2020-09-04 12:26:49] t dot motylewski at gmail dot com
Thanks for the quick verification.
Its quite surprising that docs are not using PSR. I've created a separate ticket for this topic https://bugs.php.net/bug.php?id=80060
------------------------------------------------------------------------
[2020-09-04 12:00:51] [email protected]
> 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>
------------------------------------------------------------------------
[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