mirror of
https://github.com/composer/composer
synced 2025-05-10 00:53:06 +00:00
fix phpdoc type (#10669)
This commit is contained in:
parent
02931cd531
commit
ccfbc16ac6
1 changed files with 1 additions and 1 deletions
|
@ -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)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue