You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For global constants we require UPPER_CASE. However, for read-only static class properties, we require snake_case. For read-only static class properties, we should probably use UPPER_CASE. This matches our historical PHP practices and clarifies between MyEnum.VarTwo, MyClass.VAR_TWO, and MyClass.var_one.
With the updated naming conventions, we're requiring variables and function parameters be camelCase. However, for global required constructors we allow PascalCase. While it loosens our standards, allowing variables and parameters to be PascalCase will allow us to keep constructors in PascalCase. This will then allow for:
This is a follow-up to #89. When starting to integrate the new standards, we came across the following edge cases:
readonly static
Class PropertiesFor global constants we require UPPER_CASE. However, for read-only static class properties, we require snake_case. For read-only static class properties, we should probably use UPPER_CASE. This matches our historical PHP practices and clarifies between
MyEnum.VarTwo
,MyClass.VAR_TWO
, andMyClass.var_one
.Class Constructors as Variables and Parameters
With the updated naming conventions, we're requiring variables and function parameters be camelCase. However, for global
required
constructors we allow PascalCase. While it loosens our standards, allowing variables and parameters to be PascalCase will allow us to keep constructors in PascalCase. This will then allow for:The text was updated successfully, but these errors were encountered: