document explicit php callbacks
This commit is contained in:
parent
fac49e43d4
commit
b5a172a4b3
1 changed files with 2 additions and 0 deletions
|
|
@ -87,6 +87,8 @@ intentionally unclaimed; the built-in health endpoint is `/up`.
|
||||||
- Put imports at the top of the file. Do not use inline fully qualified class
|
- Put imports at the top of the file. Do not use inline fully qualified class
|
||||||
names when a normal `use` statement is clearer.
|
names when a normal `use` statement is clearer.
|
||||||
- Do not use arrow functions. Use regular anonymous functions.
|
- Do not use arrow functions. Use regular anonymous functions.
|
||||||
|
- Do not use first-class callable syntax. Use regular anonymous functions for
|
||||||
|
callbacks so the invocation is explicit.
|
||||||
- Do not add default values to function or constructor parameters. Pass every
|
- Do not add default values to function or constructor parameters. Pass every
|
||||||
argument explicitly, including nullable arguments.
|
argument explicitly, including nullable arguments.
|
||||||
- Use descriptive names for classes, methods, parameters, and local
|
- Use descriptive names for classes, methods, parameters, and local
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue