diff --git a/migration-3.0.md b/migration-3.0.md index 409a868..2968e4c 100644 --- a/migration-3.0.md +++ b/migration-3.0.md @@ -129,6 +129,30 @@ class Example } ``` +## [Section 4.10 - Interface and abstract properties](https://www.php-fig.org/per/coding-style/#410-interface-and-abstract-properties) + +This is a new section about interface and abstract properties, as per the link above. Examples follow: + +```php +abstract class Example { + abstract public string $name { + get => ucfirst($this->name); + set; + } +} +``` + +```php +interface Example +{ + public string $readable { get; } + + public string $writeable { set; } + + public string $both { get; set; } +} +``` + ## [Section 5.2 - Switch, Case, and Match](https://www.php-fig.org/per/coding-style/#52-switch-case-match) When breaking a series of boolean operators across multiple lines, the operator MUST be at the beginning of each line, not the end of each line.