Hello PHP developers,
PHP 8 is soon to be released (end of Nov 2020) so we decided to upgrade our PHP analyzer so that it can scan your PHP 8 code. There is no change to do on your side, it should just work out of the box.
Here are the PHP 8 features supported by SonarCloud:
- Union Types
- Nullsafe operator
- Named arguments
- Attributes (aka Annotations in other languages)
- Match expression
- Constructor Property Promotion
- non-capturing catches
- Trailing comma in parameter lists
- Trailing comma in closure use lists
For SonarQube users, this will be included in SonarQube 8.6.