Doc #80059 [Com]: Lowercase true/false should be used in code examples

From: Date: Mon, 28 Sep 2020 09:15:36 +0000
Subject: Doc #80059 [Com]: Lowercase true/false should be used in code examples
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-17917@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=80059&edit=1

 ID:                 80059
 Comment by:         dorcamelda at gmail dot com
 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:

It is important to seek sociology paper writing services and sociology assignment writing services
since students find help when they visit Sociology Essay Writing Services. 
https://www.meldaresearch.com/sociology-essay-writing-services/


Previous Comments:
------------------------------------------------------------------------
[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] cmb@php.net

> 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


Thread (7 messages)

« previous php.doc.bugs (#17917) next »