From b5a172a4b3d522e3021c8b118a599e4df0067574 Mon Sep 17 00:00:00 2001 From: Yisroel Baum Date: Sun, 9 Aug 2026 09:49:30 +0300 Subject: [PATCH] document explicit php callbacks --- ai/backend-context.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ai/backend-context.md b/ai/backend-context.md index 83c2081..9850c44 100644 --- a/ai/backend-context.md +++ b/ai/backend-context.md @@ -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 names when a normal `use` statement is clearer. - 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 argument explicitly, including nullable arguments. - Use descriptive names for classes, methods, parameters, and local