Project

General

Profile

Actions

Feature proposal #6754

open

Replace plugin call user func with variable calls

Added by krileon over 6 years ago. Updated 6 months ago.

Status:
Assigned
Priority:
Normal
Assignee:
Target version:
Start date:
25 March 2016
Due date:
25 March 2016 (over 8 years late)
% Done:

0%

Estimated time:

Description

With PHP 5.6 it's possible to use splat operators in combination with variable function calls. See below.

FROM:
call_user_func_array( array( &$pluginClassInstance, $method ), $args )
TO:
$pluginClassInstance->$method( ...$args )

FROM:
call_user_func_array( $method, $args )
TO:
$method( ...$args )

This also then allows support for reference splat variable usage in the called function expanding plugin function call usage significantly.


Related issues 1 (0 open1 closed)

Follows CB - Feature proposal #5882: Guzzle, PHP7, and minimum PHP 5.6Closedkrileon24 March 2016

Actions
Actions

Also available in: Atom PDF