aboutsummaryrefslogtreecommitdiffstats
path: root/includes/libs/XhprofData.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/libs/XhprofData.php')
-rw-r--r--includes/libs/XhprofData.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/libs/XhprofData.php b/includes/libs/XhprofData.php
index 9ec27e394db1..dee766ed23c9 100644
--- a/includes/libs/XhprofData.php
+++ b/includes/libs/XhprofData.php
@@ -367,7 +367,7 @@ class XhprofData {
* @return Closure
*/
public static function makeSortFunction( $key, $sub ) {
- return function ( $a, $b ) use ( $key, $sub ) {
+ return static function ( $a, $b ) use ( $key, $sub ) {
if ( isset( $a[$key] ) && isset( $b[$key] ) ) {
// Descending sort: larger values will be first in result.
// Values for 'main()' will not have sub keys