diff --git a/Keywords.md b/Keywords.md new file mode 100644 index 0000000..e40e4bd --- /dev/null +++ b/Keywords.md @@ -0,0 +1,23 @@ +`true`, `false` and `null` must be written in lower case letters. + +
Example

+ +**Bad** + +```PHP +if($condition === TRUE && $error === FALSE) { + return NULL; +} +``` + +**Good** + +```PHP +if($condition === true && $error === false) { + return null; +} +``` + +

+ +_Reference_: [`Generic.PHP.LowerCaseConstant`](https://github.com/squizlabs/PHP_CodeSniffer/blob/master/src/Standards/Generic/Sniffs/PHP/LowerCaseConstantSniff.php) \ No newline at end of file