mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Scribunto
synced 2024-11-24 00:05:00 +00:00
Use ::class for class name resolution
Change-Id: I92a73fd6eccd3cf963ce1ff50ccf4f7aac6a0e1e
This commit is contained in:
parent
c81f3aec5f
commit
80198cd635
|
@ -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.'
|
||||
|
|
Loading…
Reference in a new issue