document explicit php callbacks

This commit is contained in:
Yisroel Baum 2026-08-09 09:49:30 +03:00
parent fac49e43d4
commit b5a172a4b3
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9

View file

@ -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