From 35bc3f831b3610852a5055180e4011d7f7cb4b5a Mon Sep 17 00:00:00 2001 From: Rodrigo Primo Date: Wed, 27 May 2026 14:15:09 +0000 Subject: [PATCH] Expand Section 4.3 entry in the PER-CS 2.0 to 3.0 migration guide PER-CS 3.0 extended two rules from Section 4.3 that previously applied only to properties so they now also apply to constants: * The "no more than one declared per statement" rule now covers both properties and constants. * The "no single underscore prefix" rule now covers both property and constant names. --- migration-3.0.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/migration-3.0.md b/migration-3.0.md index 409a868..6da3212 100644 --- a/migration-3.0.md +++ b/migration-3.0.md @@ -73,6 +73,11 @@ class Foo } ``` +Two rules previously stated only for properties were extended to also apply to constants: + +* There MUST NOT be more than one property or constant declared per statement. +* Property or constant names MUST NOT be prefixed with a single underscore. + ## [Section 4.6 - Modifier Keywords](https://www.php-fig.org/per/coding-style/#46-modifier-keywords) At least one of `readonly`, `get`-visibility, and `set`-visibility must be specified. If at least one is specified, the others may be omitted.