mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-10-06 13:29:43 +00:00
Merge branch 'master' into upgrade-sf5
This commit is contained in:
@@ -44,7 +44,9 @@ final class ReportVoterTest extends KernelTestCase
|
||||
*/
|
||||
protected $voter;
|
||||
|
||||
public static function setUpBeforeClass(): void {}
|
||||
public static function setUpBeforeClass(): void
|
||||
{
|
||||
}
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
@@ -132,7 +134,7 @@ final class ReportVoterTest extends KernelTestCase
|
||||
Report $report,
|
||||
$action,
|
||||
$message,
|
||||
User $user = null
|
||||
?User $user = null
|
||||
) {
|
||||
$token = $this->prepareToken($user);
|
||||
$result = $this->voter->vote($token, $report, [$action]);
|
||||
@@ -159,7 +161,7 @@ final class ReportVoterTest extends KernelTestCase
|
||||
*
|
||||
* @return \Symfony\Component\Security\Core\Authentication\Token\TokenInterface
|
||||
*/
|
||||
protected function prepareToken(User $user = null)
|
||||
protected function prepareToken(?User $user = null)
|
||||
{
|
||||
$token = $this->prophet->prophesize();
|
||||
$token
|
||||
|
@@ -28,7 +28,7 @@ final class TimelineProviderTest extends WebTestCase
|
||||
{
|
||||
private static ?object $em = null;
|
||||
|
||||
private \Chill\PersonBundle\Entity\Person $person;
|
||||
private Person $person;
|
||||
|
||||
/**
|
||||
* @var Report
|
||||
|
Reference in New Issue
Block a user