Skip to content

Commit

Permalink
Fix type for commands. ManagerRegistry::getManager() accepts null
Browse files Browse the repository at this point in the history
  • Loading branch information
GromNaN committed Jan 15, 2024
1 parent 2467b09 commit 643d4c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Command/DoctrineODMCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function __construct(private ManagerRegistry $registry)
parent::__construct();
}

public static function setApplicationDocumentManager(Application $application, string $dmName): void
public static function setApplicationDocumentManager(Application $application, ?string $dmName): void

Check warning on line 24 in src/Command/DoctrineODMCommand.php

View check run for this annotation

Codecov / codecov/patch

src/Command/DoctrineODMCommand.php#L24

Added line #L24 was not covered by tests
{
$dm = $application->getKernel()->getContainer()->get('doctrine_mongodb')->getManager($dmName);
$helperSet = $application->getHelperSet();
Expand Down

0 comments on commit 643d4c0

Please sign in to comment.