소스 검색

Removed new style array syntax

Daniel Mason 9 년 전
부모
커밋
48287b5a1c
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      doc/articles/plugins.md

+ 2 - 2
doc/articles/plugins.md

@@ -118,12 +118,12 @@ If multiple methods should be called, then an array of tupples can be attached t
 ```php
 public static function getSubscribedEvents()
 {
-    return [
+    return array(
         'post-autoload-dump' => array(
             array('methodToBeCalled'      ), // Priority defaults to 0
             array('someOtherMethodName', 1), // This fires first
         )
-    ];
+    );
 }
 ```