From 059248ca28df651640dfcc8286bf7fb24b47c335 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Tue, 31 Jul 2018 11:09:37 +0200 Subject: [PATCH] Update php.md --- standards/php.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/standards/php.md b/standards/php.md index 7cf4a0c..e8a9602 100644 --- a/standards/php.md +++ b/standards/php.md @@ -54,6 +54,14 @@ Use `elseif` where possible instead of `else if`. Namespaces must be surrounded with new line elements. +## Class Constants + +Class constants MUST have a access modifier + +```php +public CONST_NAME = ...; +``` + ## Deprecated functions and variables The following functions and (super-) global variables MUST NOT be used.