1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-23 23:32:39 +01:00

Fix return value of PhutilTestCase::tryTestCaseMap()

Summary: `PhutilTestCase::tryTestCases()` returns void. Thus `PhutilTestCase::tryTestCaseMap()` should behave the same way as `PhutilTestCase::assertException()`: return void.

Test Plan: Read the code; run static code analysis and don't get "Result of method PhutilTestCase::tryTestCases() (void) is used" anymore.

Reviewers: O1 Blessed Committers, valerio.bozzolan

Reviewed By: O1 Blessed Committers, valerio.bozzolan

Subscribers: tobiaswiese, valerio.bozzolan, Matthew, Cigaryno

Differential Revision: https://we.phorge.it/D25791
This commit is contained in:
Andre Klapper 2024-08-18 00:15:13 +02:00
parent 4752567130
commit 0d5f437970

View file

@ -445,7 +445,7 @@ abstract class PhutilTestCase extends Phobject {
$callable,
$exception_class = 'Exception') {
return $this->tryTestCases(
$this->tryTestCases(
array_fuse(array_keys($map)),
array_values($map),
$callable,