Skip to content

Commit

Permalink
Add missing typehint
Browse files Browse the repository at this point in the history
  • Loading branch information
ostrolucky committed May 6, 2021
1 parent 138fcf9 commit 7dbc5e4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Tests/Command/Proxy/InfoDoctrineCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ public function testExecute(): void
}

/**
* @return MockObject|Kernel
* @return MockObject&Kernel
*/
private function setupKernelMocks()
private function setupKernelMocks(): MockObject
{
$configuration = new Configuration();
$configuration->setMetadataDriverImpl(new MappingDriverChain());
Expand All @@ -59,7 +59,9 @@ private function setupKernelMocks()
$container = $this->getMockBuilder(ContainerInterface::class)->getMock();
$container->method('get')->willReturn($registry);

$kernel = $this->getMockBuilder(Kernel::class)->disableOriginalConstructor()->getMock();
$kernel = $this->getMockBuilder(Kernel::class);
$kernel->disableOriginalConstructor();
$kernel = $kernel->getMock();
$kernel->method('getBundles')->willReturn([]);
$kernel->method('getContainer')->willReturn($container);

Expand Down

0 comments on commit 7dbc5e4

Please sign in to comment.