Project

General

Profile

Actions

Task #94060

closed

Replace call_user_func[_array] with direct calls and variadics

Added by Larry Garfield over 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Miscellaneous
Target version:
-
Start date:
2021-05-04
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
Complexity:
easy
Sprint Focus:

Description

Since PHP 5.6, the splat operator (aka variadics) has been able to do everything that call_user_func() and call_user_func_array() do. Being a language construct, though, it's slightly faster as it skips a function call.

Let's use it, because the code is usually clearer anyway, as well as a tiny bit faster.

Actions

Also available in: Atom PDF