Skip to content

Commit

Permalink
Fix: Remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Jan 13, 2023
1 parent 45638fb commit 67c1afc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1066,9 +1066,6 @@
<code>$violation-&gt;getColumn()</code>
<code>$violation-&gt;getLine()</code>
</RedundantConditionGivenDocblockType>
<UnusedVariable occurrences="1">
<code>$key</code>
</UnusedVariable>
</file>
<file src="src/Reporter/JUnitReporter.php">
<ImplicitToStringCast occurrences="1">
Expand Down
2 changes: 1 addition & 1 deletion src/Reporter/GithubActionReporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function __construct(ReporterInterface $reporter)

public function report(OutputInterface $output, array $violations)
{
foreach ($violations as $key => $violation) {
foreach ($violations as $violation) {
$output->writeln(sprintf(
'::%s file=%s,line=%s,col=%s::%s',
strtolower($violation->getSeverityAsString()),
Expand Down

0 comments on commit 67c1afc

Please sign in to comment.