From d3eab4d5a133fa52df5dba89add50145c362f1cf Mon Sep 17 00:00:00 2001 From: JDGrimes Date: Wed, 23 Aug 2017 08:47:47 -0400 Subject: [PATCH] Installables app: use call_user_func() Calling a static method by name from a variable is not supported prior to PHP 7. See #404 --- src/classes/installables/app.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/classes/installables/app.php b/src/classes/installables/app.php index 7f213b20..789c4563 100644 --- a/src/classes/installables/app.php +++ b/src/classes/installables/app.php @@ -207,7 +207,7 @@ protected function get_installable( $type, $slug ) { // May be a loader function or the class name itself. if ( is_callable( $loader ) ) { - $installable = $loader( $type, $slug ); + $installable = call_user_func( $loader, $type, $slug ); } else { $installable = new $loader(); }