Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions migration-2.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,15 @@ function beep(
}
```

## [Section 4 - Classes, Properties, and Methods](https://www.php-fig.org/per/coding-style/#4-classes-properties-and-methods)

A new rule was added stating that if a class contains no additional declarations, then the body of the class SHOULD be abbreviated as `{}` and placed on the same line as the previous symbol, separated by a space.

```php
<?php
class MyException extends \RuntimeException {}
```

## [Section 4.4 - Methods and Functions](https://www.php-fig.org/per/coding-style/#44-methods-and-functions)

If a function or method contains no statements or comments (such as an empty
Expand Down