From ccfbc16ac6378711920d0db64c8ed415bf2adfb1 Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Wed, 30 Mar 2022 11:58:30 +0200 Subject: [PATCH] fix phpdoc type (#10669) --- tests/Composer/Test/Mock/ProcessExecutorMock.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Composer/Test/Mock/ProcessExecutorMock.php b/tests/Composer/Test/Mock/ProcessExecutorMock.php index 253f1a129..6d2386c3b 100644 --- a/tests/Composer/Test/Mock/ProcessExecutorMock.php +++ b/tests/Composer/Test/Mock/ProcessExecutorMock.php @@ -66,7 +66,7 @@ class ProcessExecutorMock extends ProcessExecutor */ public function expects(array $expectations, bool $strict = false, array $defaultHandler = array('return' => 0, 'stdout' => '', 'stderr' => '')): void { - /** @var array{cmd: string|list, return?: int, stdout?: string, stderr?: string, callback?: callable} $default */ + /** @var array{cmd: string|list, return: int, stdout: string, stderr: string, callback: callable} $default */ $default = array('cmd' => '', 'return' => 0, 'stdout' => '', 'stderr' => '', 'callback' => null); $this->expectations = array_map(function ($expect) use ($default): array { if (is_string($expect)) {