Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change type hint from Registry to ManagerRegistry in ProfilerController #1764

Merged
merged 2 commits into from
Mar 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions Controller/ProfilerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

namespace Doctrine\Bundle\DoctrineBundle\Controller;

use Doctrine\Bundle\DoctrineBundle\Registry;
use Doctrine\DBAL\Connection;
use Doctrine\DBAL\Platforms\OraclePlatform;
use Doctrine\DBAL\Platforms\SQLitePlatform;
use Doctrine\DBAL\Platforms\SQLServerPlatform;
use Doctrine\Persistence\ConnectionRegistry;
use Exception;
use Symfony\Bridge\Doctrine\DataCollector\DoctrineDataCollector;
use Symfony\Component\HttpFoundation\Response;
Expand All @@ -21,10 +21,10 @@
class ProfilerController
{
private Environment $twig;
private Registry $registry;
private ConnectionRegistry $registry;
private Profiler $profiler;

public function __construct(Environment $twig, Registry $registry, Profiler $profiler)
public function __construct(Environment $twig, ConnectionRegistry $registry, Profiler $profiler)

Check warning on line 27 in Controller/ProfilerController.php

View check run for this annotation

Codecov / codecov/patch

Controller/ProfilerController.php#L27

Added line #L27 was not covered by tests
{
$this->twig = $twig;
$this->registry = $registry;
Expand Down