From 80198cd635019f3308cb3be77b9fca36fbbaa7fe Mon Sep 17 00:00:00 2001 From: Umherirrender Date: Thu, 21 Sep 2023 22:46:00 +0200 Subject: [PATCH] Use ::class for class name resolution Change-Id: I92a73fd6eccd3cf963ce1ff50ccf4f7aac6a0e1e --- includes/Engines/LuaSandbox/LuaSandboxInterpreter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Engines/LuaSandbox/LuaSandboxInterpreter.php b/includes/Engines/LuaSandbox/LuaSandboxInterpreter.php index 63e4d873..f4d9d247 100644 --- a/includes/Engines/LuaSandbox/LuaSandboxInterpreter.php +++ b/includes/Engines/LuaSandbox/LuaSandboxInterpreter.php @@ -45,7 +45,7 @@ class LuaSandboxInterpreter extends LuaInterpreter { 'The luasandbox extension is not present, this engine cannot be used.' ); } - if ( !is_callable( 'LuaSandbox::getVersionInfo' ) ) { + if ( !is_callable( [ LuaSandbox::class, 'getVersionInfo' ] ) ) { throw new LuaInterpreterBadVersionError( 'The luasandbox extension is too old (version 1.6+ is required), ' . 'this engine cannot be used.'