2 Keywords
LogMANOriginal edited this page 2018-11-05 13:25:27 +01:00

Use lowercase for true, false and null

true, false and null must be written in lower case letters.

Example

Bad

if($condition === TRUE && $error === FALSE) {
    return NULL;
}

Good

if($condition === true && $error === false) {
    return null;
}

Reference: Generic.PHP.LowerCaseConstant