1
0
Fork 0

fix phpdoc type (#10669)

pull/10678/head
Markus Staab 2022-03-30 11:58:30 +02:00 committed by GitHub
parent 02931cd531
commit ccfbc16ac6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ class ProcessExecutorMock extends ProcessExecutor
*/ */
public function expects(array $expectations, bool $strict = false, array $defaultHandler = array('return' => 0, 'stdout' => '', 'stderr' => '')): void 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); $default = array('cmd' => '', 'return' => 0, 'stdout' => '', 'stderr' => '', 'callback' => null);
$this->expectations = array_map(function ($expect) use ($default): array { $this->expectations = array_map(function ($expect) use ($default): array {
if (is_string($expect)) { if (is_string($expect)) {