Skip to content

Commit

Permalink
Dropped phpdoc for union typehint
Browse files Browse the repository at this point in the history
  • Loading branch information
ViniTou committed Sep 3, 2024
1 parent 1152b33 commit 2c80110
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tests/lib/FieldTypeProcessor/ImageProcessorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@
namespace Ibexa\Tests\Rest\FieldTypeProcessor;

use Ibexa\Rest\FieldTypeProcessor\ImageProcessor;
use PHPUnit\Framework\MockObject\MockObject;
use Symfony\Component\Routing\RouterInterface;

class ImageProcessorTest extends BinaryInputProcessorTest
{
protected RouterInterface $router;
protected RouterInterface&MockObject $router;

/**
* @covers \Ibexa\Rest\FieldTypeProcessor\ImageProcessor::postProcessValueHash
Expand Down Expand Up @@ -67,10 +68,7 @@ protected function getProcessor()
);
}

/**
* @returns RouterInterface|\PHPUnit\Framework\MockObject\MockObject
*/
protected function getRouterMock()
protected function getRouterMock(): RouterInterface&MockObject
{
if (!isset($this->router)) {
$this->router = $this->createMock(RouterInterface::class);
Expand Down

0 comments on commit 2c80110

Please sign in to comment.