diff --git a/migration-2.0.md b/migration-2.0.md index 2b14f0d..282540f 100644 --- a/migration-2.0.md +++ b/migration-2.0.md @@ -158,6 +158,19 @@ $func = fn( $result = $collection->reduce(fn(int $x, int $y): int => $x + $y, 0); ``` +## [Section 8 - Anonymous Classes](https://www.php-fig.org/per/coding-style/#8-anonymous-classes) + +A new rule was added stating that if an anonymous class has no arguments, the `()` after `class` MUST be omitted. + +```php +