From d88a566aee3f612d62ca5220b46cbbd4782f7322 Mon Sep 17 00:00:00 2001 From: Andrey Savchenko Date: Thu, 27 Aug 2015 14:05:19 +0300 Subject: [PATCH] Fixed dynamic method call to prevent crash on PHP 7. --- src/class-laps.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/class-laps.php b/src/class-laps.php index 37089a5..0aa9834 100644 --- a/src/class-laps.php +++ b/src/class-laps.php @@ -106,7 +106,7 @@ class Laps { return $input; } - self::$stopwatch->$event['action']( $event['event'], $event['category'] ); + self::$stopwatch->{$event['action']}( $event['event'], $event['category'] ); return $input; }