aboutsummaryrefslogtreecommitdiffstats
path: root/maintenance/includes
diff options
context:
space:
mode:
authorUmherirrender <umherirrender_de.wp@web.de>2025-01-24 23:32:36 +0100
committerUmherirrender <umherirrender_de.wp@web.de>2025-02-03 22:08:16 +0000
commit366ee6381e44eda9c5e4c691e77674fb6bce2528 (patch)
tree3b2996bf725b2ea09da00a3331ae829f14a3a0aa /maintenance/includes
parente13244142584abfc1fa21a8495b62bc7a1fa325d (diff)
downloadmediawikicore-366ee6381e44eda9c5e4c691e77674fb6bce2528.tar.gz
mediawikicore-366ee6381e44eda9c5e4c691e77674fb6bce2528.zip
Replace call_user_func_array with dynamic function call
Use modern php syntax to call a callable. Reduce the stack trace to improve performance and better IDE and static analyzer Also replace func_get_args with variables Change-Id: Ie193c4e996ab136e08f1e16c988448d054520aa7
Diffstat (limited to 'maintenance/includes')
-rw-r--r--maintenance/includes/Benchmarker.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/maintenance/includes/Benchmarker.php b/maintenance/includes/Benchmarker.php
index 8fd44465212c..8004739b8112 100644
--- a/maintenance/includes/Benchmarker.php
+++ b/maintenance/includes/Benchmarker.php
@@ -122,7 +122,7 @@ abstract class Benchmarker extends Maintenance {
}
$t = microtime( true );
// @phan-suppress-next-line PhanTypePossiblyInvalidDimOffset False positive
- call_user_func_array( $bench['function'], $bench['args'] );
+ $bench['function']( ...$bench['args'] );
$t = ( microtime( true ) - $t ) * 1000;
if ( $verbose ) {
$this->verboseRun( $i );