#1902·pest

[错误]: ->with([A::class, B::class]) 被调用为 [class, method] 可调用函数,而不是进行迭代,导致测试失败

作者: Bazil1207创建于 2026年9月10日更新于 2026年9月12日

What Happened A dataset written as an unkeyed pair of class-name strings is **invoked as a callable** instead of iterated as two rows. PHP reads a two-element array whose first element names a class as a `[class, method]` callable, and `is_callable()` accepts *any* method name on a class that defines `__callStatic`. `DatasetsRepository::processDatasets()` uses `is_callable()`, so it calls the dataset: