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 100d346 commit d8fd970
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 @@ -454,7 +454,7 @@ This leaves, for now, only unconditionally declared functions in the global name

For those, adding `callable`, class and interface name based parameter type declarations where the parameter type only expects one type and it would allow for simplification of existing/new code, is allowed and tentatively encouraged.

Using the `array` keyword in type declarations is **strongly discouraged** for now, as most often, it would be better to use `iterable` to allow for more flexibility in the implementation and that keyword is not yet available for use in WordPress Core until the minimum requirements are raised to PHP 7.1.
Note: Using the `array` keyword in type declarations is **strongly discouraged** for now, as most often, it would be better to use `iterable` to allow for more flexibility in the implementation and that keyword is not yet available for use in WordPress Core until the minimum requirements are raised to PHP 7.1.

## Declare Statements, Namespace, and Import Statements

Expand Down

0 comments on commit d8fd970

Please sign in to comment.