Skip to content

Commit

Permalink
fix phpdoc type (composer#10669)
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm authored and emahorvat52 committed Jan 18, 2023
1 parent 7ca2034 commit ddf175c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Composer/Test/Mock/ProcessExecutorMock.php
Expand Up @@ -66,7 +66,7 @@ public function __construct(MockBuilder $processMockBuilder)
*/
public function expects(array $expectations, bool $strict = false, array $defaultHandler = array('return' => 0, 'stdout' => '', 'stderr' => '')): void
{
/** @var array{cmd: string|list<string>, return?: int, stdout?: string, stderr?: string, callback?: callable} $default */
/** @var array{cmd: string|list<string>, 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)) {
Expand Down

0 comments on commit ddf175c

Please sign in to comment.