Skip to content

Commit

Permalink
Issue bot - skip phpstanPlayground.configParameter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Jan 24, 2025
1 parent 50f8e49 commit 71d0327
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions issue-bot/src/Playground/TabCreator.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

namespace PHPStan\IssueBot\Playground;

use function array_filter;
use function array_map;
use function array_values;
use function count;
use function floor;
use function ksort;
Expand All @@ -26,6 +28,7 @@ public function create(array $versionedErrors): array
$last = null;

foreach ($versionedErrors as $phpVersion => $errors) {
$errors = array_values(array_filter($errors, static fn (PlaygroundError $error) => $error->getIdentifier() !== 'phpstanPlayground.configParameter'));
$errors = array_map(static function (PlaygroundError $error): PlaygroundError {
if ($error->getIdentifier() === null) {
return $error;
Expand Down

0 comments on commit 71d0327

Please sign in to comment.