API: Fix missing return in ApiResult::addContentValue()
authorKunal Mehta <legoktm@member.fsf.org>
Sun, 24 Mar 2019 00:10:18 +0000 (17:10 -0700)
committerKunal Mehta <legoktm@member.fsf.org>
Sun, 24 Mar 2019 01:06:35 +0000 (18:06 -0700)
Spotted by phan.

Change-Id: Ifca5e15a1360008b5d91e1b6f483da8e0367819a

includes/api/ApiResult.php

index c4a31c7..c27b10e 100644 (file)
@@ -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 );
        }
 
        /**