Skip to content

Commit f874de7

Browse files
author
addwiki-ci
committed
Start using psalm (#48)
* Add psalm for psr4 migration * Fix psalm issues * Add psalm as composer command * Fix psalm in composer.json (missing ,) * composer fix * Suppress some issues caused by WBDataModel Iterators Can all be removed once wmde/WikibaseDataModel#838 is merged and released... * RELNOTES for some fixes from psalm
1 parent 289f573 commit f874de7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Api/Service/ValueParser.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
namespace Wikibase\Api\Service;
44

5+
use DataValues\DataValue;
56
use Deserializers\Deserializer;
7+
use GuzzleHttp\Promise\PromiseInterface;
68
use Mediawiki\Api\MediawikiApi;
79
use Mediawiki\Api\SimpleRequest;
810
use RuntimeException;
@@ -52,7 +54,7 @@ public function parse( $inputValues, $parser ) {
5254
* @param string|string[] $inputValues one or more
5355
* @param string $parser Id of the ValueParser to use
5456
*
55-
* @return Promise of a DataValue object or array of DataValue objects with same keys as values
57+
* @return PromiseInterface of a DataValue object or array of DataValue objects with same keys as values
5658
*/
5759
public function parseAsync( $inputValues, $parser ) {
5860
$promise = $this->api->getRequestAsync(

0 commit comments

Comments
 (0)