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.core.php

    r3866 r3872  
    376376    @return    <b>string</b> Behavior concatened result 
    377377     */ 
    378     public function callBehavior($behavior) 
     378    public function callBehavior($behavior, ...$args) 
    379379    { 
    380380        if (isset($this->behaviors[$behavior])) { 
    381             $args = func_get_args(); 
    382             array_shift($args); 
    383  
    384381            $res = ''; 
    385382 
Note: See TracChangeset for help on using the changeset viewer.

Sites map