Переглянути джерело

Merge pull request #5 from splitbrain-forks/php7-signature

Adjust method signatures to match parent
Fernando Ribeiro 9 роки тому
батько
коміт
527f3fdf18
1 змінених файлів з 2 додано та 2 видалено
  1. 2 2
      syntax/button.php

+ 2 - 2
syntax/button.php

@@ -47,7 +47,7 @@ class syntax_plugin_socialite_button extends DokuWiki_Syntax_Plugin {
      * @param Doku_Handler    $handler The handler
      * @return array Data for the renderer
      */
-    public function handle($match, $state, $pos, Doku_Handler &$handler){
+    public function handle($match, $state, $pos, Doku_Handler $handler){
         $match = strtolower(trim(substr($match, 11, -2))); // strip markup
 
         // checks if a display mode is passed
@@ -75,7 +75,7 @@ class syntax_plugin_socialite_button extends DokuWiki_Syntax_Plugin {
      * @param array          $data      The data from the handler() function
      * @return bool If rendering was successful.
      */
-    public function render($mode, Doku_Renderer &$renderer, $data) {
+    public function render($mode, Doku_Renderer $renderer, $data) {
 
         if($mode != 'xhtml') return false;