Use ::class for class name resolution

Change-Id: I92a73fd6eccd3cf963ce1ff50ccf4f7aac6a0e1e
This commit is contained in:
Umherirrender 2023-09-21 22:46:00 +02:00
parent c81f3aec5f
commit 80198cd635

View file

@ -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.'