Improve Command (#5879)

This commit is contained in:
Deeka Wong 2023-06-26 17:11:21 +08:00 committed by GitHub
parent 21d63d5e01
commit 6c4cb30f5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View File

@ -31,6 +31,7 @@
- [#5586](https://github.com/hyperf/hyperf/pull/5586) Support grpc streaming for nacos naming service.
- [#5866](https://github.com/hyperf/hyperf/pull/5866) Use `StrCache` instead of `Str` in special cases.
- [#5872](https://github.com/hyperf/hyperf/pull/5872) Avoid to execute the refresh callback more than once when calling `refresh()` multi times.
- [#5879](https://github.com/hyperf/hyperf/pull/5879) [#5878](https://github.com/hyperf/hyperf/pull/5878) Improve `Command`.
## Removed

View File

@ -20,7 +20,6 @@ use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Question\ChoiceQuestion;
use Symfony\Component\Console\Question\Question;
use Symfony\Component\Console\Style\OutputStyle;
use Symfony\Component\Console\Style\SymfonyStyle;
trait InteractsWithIO
@ -28,7 +27,7 @@ trait InteractsWithIO
protected ?InputInterface $input = null;
/**
* @var null|OutputInterface|SymfonyStyle
* @var null|SymfonyStyle
*/
protected ?OutputInterface $output = null;
@ -380,8 +379,9 @@ trait InteractsWithIO
/**
* Set the output interface implementation.
* @param SymfonyStyle $output
*/
public function setOutput(OutputStyle $output)
public function setOutput($output)
{
$this->output = $output;
}
@ -389,7 +389,7 @@ trait InteractsWithIO
/**
* Get the output implementation.
*
* @return OutputStyle
* @return null|SymfonyStyle
*/
public function getOutput()
{