Skip to content

Commit da764a2

Browse files
authored
Expose Output::isDecorated and Output::isVeryVerbose
1 parent 475a18c commit da764a2

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

Diff for: src/Command/Output.php

+4
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ public function getStyle(): OutputStyle;
1616

1717
public function isVerbose(): bool;
1818

19+
public function isVeryVerbose(): bool;
20+
1921
public function isDebug(): bool;
2022

23+
public function isDecorated(): bool;
24+
2125
}

Diff for: src/Command/Symfony/SymfonyOutput.php

+10
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,19 @@ public function isVerbose(): bool
4444
return $this->symfonyOutput->isVerbose();
4545
}
4646

47+
public function isVeryVerbose(): bool
48+
{
49+
return $this->symfonyOutput->isVeryVerbose();
50+
}
51+
4752
public function isDebug(): bool
4853
{
4954
return $this->symfonyOutput->isDebug();
5055
}
5156

57+
public function isDecorated(): bool
58+
{
59+
return $this->symfonyOutput->isDecorated();
60+
}
61+
5262
}

Diff for: src/Rules/Api/BcUncoveredInterface.php

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace PHPStan\Rules\Api;
44

55
use PHPStan\Analyser\Scope;
6+
use PHPStan\Command\Output;
67
use PHPStan\Reflection\Callables\CallableParametersAcceptor;
78
use PHPStan\Reflection\ExtendedMethodReflection;
89
use PHPStan\Reflection\ExtendedPropertyReflection;
@@ -39,6 +40,7 @@ final class BcUncoveredInterface
3940
NonIgnorableRuleError::class,
4041
RuleError::class,
4142
TipRuleError::class,
43+
Output::class,
4244
];
4345

4446
}

0 commit comments

Comments
 (0)