Replace trigger_error('') magic with error_clear_last()

Bug: T191247
Change-Id: I8bedd9c6df4648941c957d92fa8b0c8464f1d796
This commit is contained in:
Max Semenik 2019-10-28 00:07:17 -07:00 committed by jenkins-bot
parent 52fb5f8c21
commit 764847164a

View file

@ -255,9 +255,7 @@ class Scribunto_LuaStandaloneInterpreter extends Scribunto_LuaInterpreter {
// Clear the "last error", so if proc_open fails we can know any
// warning was generated by that.
Wikimedia\suppressWarnings();
trigger_error( '' );
Wikimedia\restoreWarnings();
error_clear_last();
$this->proc = proc_open(
$cmd,