数组定义用法统一

This commit is contained in:
thinkphp
2013-04-11 14:49:39 +08:00
parent bbe3ebedcf
commit 00ee80e943
35 changed files with 83 additions and 81 deletions

View File

@@ -63,7 +63,7 @@ class App {
$action = ACTION_NAME.$config['action_suffix'];
try{
// 操作方法开始监听
$call = array($instance,$action);
$call = [$instance,$action];
Tag::listen('action_begin',$call);
if(!preg_match('/^[A-Za-z](\w)*$/',$action)){
// 非法操作
@@ -109,7 +109,7 @@ class App {
// 操作不存在
if(method_exists($instance,'_empty')) {
$method = new \ReflectionMethod($instance,'_empty');
$method->invokeArgs($instance,array($action,''));
$method->invokeArgs($instance,[$action,'']);
}else{
E('[ '.(new \ReflectionClass($instance))->getName().':'.$action.' ] not exists ',404);
}