Skip to content

Commit

Permalink
PHP 8.4 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
andypost committed Jul 23, 2024
1 parent d416e90 commit 05bd7ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Collection/CompletionWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class CompletionWrapper extends BaseTask implements WrappedTaskInterface
* @param \Robo\Contract\TaskInterface $task
* @param \Robo\Contract\TaskInterface|null $rollbackTask
*/
public function __construct(Collection $collection, TaskInterface $task, TaskInterface $rollbackTask = null)
public function __construct(Collection $collection, TaskInterface $task, ?TaskInterface $rollbackTask = null)
{
$this->collection = $collection;
$this->task = ($task instanceof WrappedTaskInterface) ? $task->original() : $task;
Expand Down
2 changes: 1 addition & 1 deletion src/Common/IO.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function restore()
}

// This should typically only be called by State::restore()
public function restoreState(InputInterface $input = null, OutputInterface $output = null, SymfonyStyle $io = null)
public function restoreState(?InputInterface $input = null, ?OutputInterface $output = null, ?SymfonyStyle $io = null)
{
$this->setInput($input);
$this->setOutput($output);
Expand Down

0 comments on commit 05bd7ae

Please sign in to comment.