From f00ad9d5c285ede1b96ce10fa107bdcdc530f72c Mon Sep 17 00:00:00 2001 From: Rodrigo Primo Date: Fri, 15 May 2026 11:41:51 -0300 Subject: [PATCH] Add Section 6.1 to the PER-CS 1.0 to 2.0 migration guide PER-CS 2.0 added a new normative rule to Section 6.1 about the spacing between a type casting operator and the variable it is operating on. The rule is not currently documented in the migration guide. This commit adds the missing entry. --- migration-2.0.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/migration-2.0.md b/migration-2.0.md index 2b14f0d..50fbdbb 100644 --- a/migration-2.0.md +++ b/migration-2.0.md @@ -138,6 +138,15 @@ $returnValue = match ($expr) { }; ``` +## [Section 6.1 - Unary operators](https://www.php-fig.org/per/coding-style/#61-unary-operators) + +The type casting operators rule was updated to also require a single space between the cast and the variable it operates on. + +```php +