This repository was archived by the owner on Jan 29, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 15
15
use function array_map ;
16
16
use function array_pop ;
17
17
use function array_search ;
18
+ use function array_values ;
18
19
use function array_walk ;
19
- use function call_user_func_array ;
20
20
use function explode ;
21
21
use function get_class ;
22
22
use function gettype ;
@@ -620,7 +620,7 @@ public function addConstants(array $constants)
620
620
$ this ->addPropertyFromGenerator ($ constant );
621
621
} else {
622
622
if (is_array ($ constant )) {
623
- call_user_func_array ([ $ this , ' addConstant ' ], $ constant );
623
+ $ this -> addConstant (... array_values ( $ constant) );
624
624
}
625
625
}
626
626
}
@@ -641,7 +641,7 @@ public function addProperties(array $properties)
641
641
if (is_string ($ property )) {
642
642
$ this ->addProperty ($ property );
643
643
} elseif (is_array ($ property )) {
644
- call_user_func_array ([ $ this , ' addProperty ' ], $ property );
644
+ $ this -> addProperty (... array_values ( $ property) );
645
645
}
646
646
}
647
647
}
@@ -822,7 +822,7 @@ public function addMethods(array $methods)
822
822
if (is_string ($ method )) {
823
823
$ this ->addMethod ($ method );
824
824
} elseif (is_array ($ method )) {
825
- call_user_func_array ([ $ this , ' addMethod ' ], $ method );
825
+ $ this -> addMethod (... array_values ( $ method) );
826
826
}
827
827
}
828
828
}
You can’t perform that action at this time.
0 commit comments