Skip to content

Commit 19b653d

Browse files
committed
cs-fix
1 parent 455d53d commit 19b653d

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

src/Console/DisplayCommand.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,11 @@ protected function execute(InputInterface $input, OutputInterface $output): int
8080
$output->writeln("\n" . Style::header($title));
8181
$output->writeln(Style::separator('=', \strlen($title)) . "\n");
8282

83-
$documents = $registry->getDocuments();
83+
$documents = $registry->getItems();
8484
$output->writeln(Style::property("Total documents") . ": " . Style::count(\count($documents)) . "\n\n");
8585

8686
foreach ($documents as $index => $document) {
87+
/** @psalm-suppress InvalidOperand */
8788
$output->writeln(
8889
Style::header("Document") . " " . Style::itemNumber($index + 1, \count($documents)) . ":",
8990
);

src/Console/Renderer/SourceRenderer.php

+3
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ private function renderFileSource(FileSource $source): string
8787
$modifierRenderer = new ModifierRenderer();
8888

8989
foreach ($source->modifiers as $index => $modifier) {
90+
/** @psalm-suppress InvalidOperand */
9091
$output .= "\n" . Style::property("Modifier") . " " . Style::itemNumber($index + 1) . ":\n";
9192
$modOutput = $modifierRenderer->renderModifier($modifier);
9293
$output .= Style::indent($modOutput);
@@ -137,6 +138,7 @@ private function renderGithubSource(GithubSource $source): string
137138
$modifierRenderer = new ModifierRenderer();
138139

139140
foreach ($source->modifiers as $index => $modifier) {
141+
/** @psalm-suppress InvalidOperand */
140142
$output .= "\n" . Style::property("Modifier") . " " . Style::itemNumber($index + 1) . ":\n";
141143
$modOutput = $modifierRenderer->renderModifier($modifier);
142144
$output .= Style::indent($modOutput);
@@ -182,6 +184,7 @@ private function renderGitDiffSource(CommitDiffSource $source): string
182184
$modifierRenderer = new ModifierRenderer();
183185

184186
foreach ($source->modifiers as $index => $modifier) {
187+
/** @psalm-suppress InvalidOperand */
185188
$output .= "\n" . Style::property("Modifier") . " " . Style::itemNumber($index + 1) . ":\n";
186189
$modOutput = $modifierRenderer->renderModifier($modifier);
187190
$output .= Style::indent($modOutput);

src/Document/Compiler/Error/ErrorCollection.php

-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
namespace Butschster\ContextGenerator\Document\Compiler\Error;
66

7-
use Stringable as TError;
8-
97
/**
108
* Collection of source errors that occurred during document compilation
119
* @template TError of \Stringable|string

0 commit comments

Comments
 (0)