Explorar o código

Removed new style array syntax

Daniel Mason %!s(int64=9) %!d(string=hai) anos
pai
achega
48287b5a1c
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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
         )
-    ];
+    );
 }
 ```