mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-11-14 05:16:12 +01:00

[CLEANUP] Fix the Prophecy-related type annotations (#299)

This commit is contained in:
Oliver Klee 2021-09-15 02:09:37 +02:00 committed by GitHub
parent a173900a7f
commit 6e927a8656
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -25,12 +25,12 @@ class TeaControllerTest extends UnitTestCase
private $subject = null; private $subject = null;
/** /**
* @var TemplateView|ObjectProphecy * @var ObjectProphecy
*/ */
private $viewProphecy = null; private $viewProphecy = null;
/** /**
* @var TeaRepository|ObjectProphecy * @var ObjectProphecy
*/ */
private $teaRepositoryProphecy = null; private $teaRepositoryProphecy = null;
@ -43,7 +43,7 @@ class TeaControllerTest extends UnitTestCase
$this->inject($this->subject, 'view', $view); $this->inject($this->subject, 'view', $view);
$this->teaRepositoryProphecy = $this->prophesize(TeaRepository::class); $this->teaRepositoryProphecy = $this->prophesize(TeaRepository::class);
/** @var TeaRepository|ProphecySubjectInterface $teaRepository */ /** @var TeaRepository&ProphecySubjectInterface $teaRepository */
$teaRepository = $this->teaRepositoryProphecy->reveal(); $teaRepository = $this->teaRepositoryProphecy->reveal();
$this->subject->injectTeaRepository($teaRepository); $this->subject->injectTeaRepository($teaRepository);
} }

View file

@ -21,7 +21,7 @@ class TeaRepositoryTest extends UnitTestCase
private $subject = null; private $subject = null;
/** /**
* @var ObjectManagerInterface|ProphecySubjectInterface * @var ObjectManagerInterface&ProphecySubjectInterface
*/ */
protected $objectManager = null; protected $objectManager = null;