From dac8ba4bd6973e86bcaab59f43323bfdf960b70c Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Sat, 23 Mar 2019 17:10:18 -0700 Subject: [PATCH] API: Fix missing return in ApiResult::addContentValue() Spotted by phan. Change-Id: Ifca5e15a1360008b5d91e1b6f483da8e0367819a --- includes/api/ApiResult.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/api/ApiResult.php b/includes/api/ApiResult.php index c4a31c7845..c27b10e344 100644 --- a/includes/api/ApiResult.php +++ b/includes/api/ApiResult.php @@ -498,7 +498,7 @@ class ApiResult implements ApiSerializable { throw new InvalidArgumentException( 'Content value must be named' ); } $this->addContentField( $path, $name, $flags ); - $this->addValue( $path, $name, $value, $flags ); + return $this->addValue( $path, $name, $value, $flags ); } /** -- 2.20.1