Skip to content

Commit

Permalink
Update wordpress-coding-standards/php.md
Browse files Browse the repository at this point in the history
Co-authored-by: Juliette <[email protected]>
  • Loading branch information
dingo-d and jrfnl authored Aug 26, 2022
1 parent d8fd970 commit 96fc2e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wordpress-coding-standards/php.md
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ Type declarations must have exactly one space before and after the type. The nul

Return type declarations should have no space between the closing parenthesis of the function declaration and the colon starting a return type.

These rules apply to all structures allowing for type declarations: functions, closures, catch conditions as well as the PHP 7.4 arrow functions and typed properties.
These rules apply to all structures allowing for type declarations: functions, closures, enums, catch conditions as well as the PHP 7.4 arrow functions and typed properties.

The following examples showcase what type hints are currently available in the WordPress Core due to the minimum supported PHP version

Expand Down

0 comments on commit 96fc2e0

Please sign in to comment.