Skip to content

Commit eaa4bf0

Browse files
chore(quality) Type resolved options as array<string, mixed> to match AbstractConfigurableTask::$options since process-bundle v5.2
1 parent f896e44 commit eaa4bf0

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

‎src/Task/UnzipTask.php‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@ protected function getOptions(ProcessState $state): ?array
8181
if (\is_array($state->getInput())) {
8282
$resolver = new OptionsResolver();
8383
$this->configureOptions($resolver);
84-
$this->options = $resolver->resolve(array_merge($state->getContextualizedOptions() ?? [], $state->getInput()));
84+
/** @var array<string, mixed> $options */
85+
$options = $resolver->resolve(array_merge($state->getContextualizedOptions() ?? [], $state->getInput()));
86+
$this->options = $options;
8587
}
8688

8789
// @phpstan-ignore return.type

‎src/Task/ZipTask.php‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,9 @@ protected function getOptions(ProcessState $state): ?array
9999
if (\is_array($state->getInput())) {
100100
$resolver = new OptionsResolver();
101101
$this->configureOptions($resolver);
102-
$this->options = $resolver->resolve(array_merge($state->getContextualizedOptions() ?? [], $state->getInput()));
102+
/** @var array<string, mixed> $options */
103+
$options = $resolver->resolve(array_merge($state->getContextualizedOptions() ?? [], $state->getInput()));
104+
$this->options = $options;
103105
}
104106

105107
// @phpstan-ignore return.type

0 commit comments

Comments
 (0)