Dotclear


Ignore:
Timestamp:
09/12/18 14:45:17 (7 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Use ... token for variable argument list rather than func_get_args() whenever is possible

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/core/class.dc.media.php

    r3731 r3872  
    158158    } 
    159159 
    160     protected function callFileHandler($type, $event) 
     160    protected function callFileHandler($type, $event, ...$args) 
    161161    { 
    162162        if (!empty($this->file_handler[$type][$event])) { 
    163             $args = func_get_args(); 
    164             array_shift($args); 
    165             array_shift($args); 
    166  
    167163            foreach ($this->file_handler[$type][$event] as $f) { 
    168164                call_user_func_array($f, $args); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map