Skip to content

Conversation

MengShaoying
Copy link
Contributor

官方文档 中表示以下使用方式可以令预设的闭包逻辑可以收到传入not_found的参数(也就是1,2,3可以传给if_not_found设置的闭包逻辑):

not_found(1, 2, 3);

但是实际上不是这样的。例如以下的测试场景:

if_not_found(function($a, $b, $c) { return [$a, $b, $c]; });
not_found(1, 2, 3);

理论上访问应该是得到: [1,2,3] ,但实际得到的是: [{},2,3]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant