Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@
"scripts": {
"fix-lint": [
"@composer bin c-norm normalize \"$(pwd)/composer.json\" --indent-style tab --indent-size 1 --ansi",
"vendor-bin/cs-fixer/vendor/bin/php-cs-fixer fix --diff --config vendor-bin/cs-fixer/vendor/21torr/php-cs-fixer/.php-cs-fixer.dist.php --no-interaction --ansi"
"PHP_CS_FIXER_IGNORE_ENV=1 vendor-bin/cs-fixer/vendor/bin/php-cs-fixer fix --diff --config vendor-bin/cs-fixer/vendor/21torr/php-cs-fixer/.php-cs-fixer.dist.php --no-interaction --ansi"
],
"lint": [
"@composer bin c-norm normalize \"$(pwd)/composer.json\" --indent-style tab --indent-size 1 --dry-run --ansi",
"vendor-bin/cs-fixer/vendor/bin/php-cs-fixer check --diff --config vendor-bin/cs-fixer/vendor/21torr/php-cs-fixer/.php-cs-fixer.dist.php --no-interaction --ansi"
"PHP_CS_FIXER_IGNORE_ENV=1 vendor-bin/cs-fixer/vendor/bin/php-cs-fixer check --diff --config vendor-bin/cs-fixer/vendor/21torr/php-cs-fixer/.php-cs-fixer.dist.php --no-interaction --ansi"
],
"test": [
"simple-phpunit",
Expand Down
2 changes: 2 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
includes:
- vendor/21torr/janus/phpstan/lib.neon

# If you use simple-phpunit, you need to uncomment the following line.
# Always make sure to first run simple-phpunit and then PHPStan.
parameters:
bootstrapFiles:
- vendor/bin/.phpunit/phpunit/vendor/autoload.php
44 changes: 33 additions & 11 deletions src/Console/ChainOutput.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,98 +25,120 @@ public function __construct (
}

/**
* @inheritDoc
*
*/
#[\Override]
public function write (iterable|string $messages, bool $newline = false, int $options = 0) : void
{
$this->bufferedOutput->write($messages, $newline, $options);
$this->consoleOutput->write($messages, $newline, $options);
}

/**
* @inheritDoc
*
*/
#[\Override]
public function writeln (iterable|string $messages, int $options = 0) : void
{
$this->bufferedOutput->writeln($messages, $options);
$this->consoleOutput->writeln($messages, $options);
}

/**
* @inheritDoc
*
*/
#[\Override]
public function setVerbosity (int $level) : void
{
$this->bufferedOutput->setVerbosity($level);
$this->consoleOutput->setVerbosity($level);
}

/**
* @inheritDoc
*
*/
#[\Override]
public function getVerbosity () : int
{
return $this->bufferedOutput->getVerbosity();
}

/**
* @inheritDoc
*
*/
#[\Override]
public function isQuiet () : bool
{
return $this->bufferedOutput->isQuiet();
}

/**
* @inheritDoc
*
*/
#[\Override]
public function isVerbose () : bool
{
return $this->bufferedOutput->isVerbose();
}

/**
* @inheritDoc
*
*/
#[\Override]
public function isVeryVerbose () : bool
{
return $this->bufferedOutput->isVeryVerbose();
}

/**
* @inheritDoc
*
*/
#[\Override]
public function isDebug () : bool
{
return $this->bufferedOutput->isDebug();
}

/**
* @inheritDoc
*
*/
public function isSilent() : bool
{
return $this->bufferedOutput->isSilent();
}

/**
*
*/
#[\Override]
public function setDecorated (bool $decorated) : void
{
$this->bufferedOutput->setDecorated(true);
$this->consoleOutput->setDecorated(true);
}

/**
* @inheritDoc
*
*/
#[\Override]
public function isDecorated () : bool
{
return $this->bufferedOutput->isDecorated();
}

/**
*
*/
public function setFormatter (OutputFormatterInterface $formatter) : void
{
$this->bufferedOutput->setFormatter($formatter);
$this->consoleOutput->setFormatter($formatter);
}

/**
* @inheritDoc
*
*/
#[\Override]
public function getFormatter () : OutputFormatterInterface
{
return $this->bufferedOutput->getFormatter();
Expand Down