Skip to content

Commit

Permalink
Fix psalm issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ostrolucky committed Dec 16, 2023
1 parent 4d7352a commit 918e31a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions DataCollector/DoctrineDataCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,7 @@ public function __construct(ManagerRegistry $registry, bool $shouldValidateSchem
$this->registry = $registry;
$this->shouldValidateSchema = $shouldValidateSchema;

if ($debugDataHolder === null) {
parent::__construct($registry);
} else {
parent::__construct($registry, $debugDataHolder);
}
parent::__construct($registry, $debugDataHolder);
}

public function collect(Request $request, Response $response, ?Throwable $exception = null): void
Expand Down
2 changes: 1 addition & 1 deletion Tests/ProfilerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function setUp(): void

if (class_exists(CodeExtension::class)) {
$this->twig->addExtension(new CodeExtension('', '', ''));
} else {
} elseif (class_exists(CodeExtensionLegacy::class)) {
$this->twig->addExtension(new CodeExtensionLegacy('', '', ''));
}

Expand Down

0 comments on commit 918e31a

Please sign in to comment.