From 5d5645565fbb4884ea2bbe8fb57150b2240015af Mon Sep 17 00:00:00 2001 From: Alex Monk Date: Fri, 16 Dec 2016 11:10:31 +0000 Subject: [PATCH] Fix I0e802a47: Don't try to send dieWithError error codes as integers Bug: T152429 Change-Id: If882b14adc945ca49e51a912a676aee0be9c9fec --- ApiVisualEditor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ApiVisualEditor.php b/ApiVisualEditor.php index b3981d814f..dd8eef213e 100644 --- a/ApiVisualEditor.php +++ b/ApiVisualEditor.php @@ -116,7 +116,7 @@ class ApiVisualEditor extends ApiBase { } else { // error null, code not 200 $this->dieWithError( [ 'apierror-visualeditor-docserver-http', $response['code'] ], - $response['code'] + (string) $response['code'] ); } return $response['body'];