Skip to content

Commit a3fd2b2

Browse files
committed
CS
1 parent d8645dd commit a3fd2b2

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

phpstan-baseline.neon

+15
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,21 @@ parameters:
170170
count: 1
171171
path: src/EventListener/LoginListener.php
172172

173+
-
174+
message: "#^Instanceof between Throwable and Symfony\\\\Component\\\\Messenger\\\\Exception\\\\DelayedMessageHandlingException will always evaluate to false\\.$#"
175+
count: 1
176+
path: src/EventListener/MessengerListener.php
177+
178+
-
179+
message: "#^Instanceof between Throwable and Symfony\\\\Component\\\\Messenger\\\\Exception\\\\HandlerFailedException will always evaluate to false\\.$#"
180+
count: 1
181+
path: src/EventListener/MessengerListener.php
182+
183+
-
184+
message: "#^Result of && is always false\\.$#"
185+
count: 2
186+
path: src/EventListener/MessengerListener.php
187+
173188
-
174189
message: "#^Call to an undefined method Symfony\\\\Component\\\\HttpKernel\\\\Event\\\\KernelEvent\\:\\:isMasterRequest\\(\\)\\.$#"
175190
count: 1

tests/EventListener/Fixtures/UserWithIdentifierStub.php

+10-1
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,29 @@
99
final class UserWithIdentifierStub implements UserInterface
1010
{
1111
/**
12-
* @var string
12+
* @var non-empty-string
1313
*/
1414
private $username;
1515

16+
/**
17+
* @param non-empty-string $username
18+
*/
1619
public function __construct(string $username = 'foo_user')
1720
{
1821
$this->username = $username;
1922
}
2023

24+
/**
25+
* @return non-empty-string
26+
*/
2127
public function getUserIdentifier(): string
2228
{
2329
return $this->getUsername();
2430
}
2531

32+
/**
33+
* @return non-empty-string
34+
*/
2635
public function getUsername(): string
2736
{
2837
return $this->username;

0 commit comments

Comments
 (0)