Skip to content
This repository was archived by the owner on Dec 2, 2021. It is now read-only.

Commit 3a159d8

Browse files
committed
Set all Psalm deprecation errors to info
(cherry picked from commit 44dcfb4bd418779c8c247f51d85131db537d8d1d)
1 parent 6fbf08b commit 3a159d8

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

Security/TwoFactor/Trusted/JwtTokenEncoder.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ public function __construct(string $applicationSecret)
3333

3434
public function generateToken(string $username, string $firewallName, int $version, \DateTimeInterface $validUntil): Token
3535
{
36-
/** @psalm-suppress DeprecatedMethod */
3736
$builder = (new Builder())
3837
->setIssuedAt(time())
3938
->setExpiration($validUntil->getTimestamp())

psalm.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,14 @@
1515
<file name="Security/TwoFactor/Event/Event.php" />
1616
</ignoreFiles>
1717
</projectFiles>
18+
19+
<issueHandlers>
20+
<DeprecatedClass errorLevel="info" />
21+
<DeprecatedConstant errorLevel="info" />
22+
<DeprecatedFunction errorLevel="info" />
23+
<DeprecatedInterface errorLevel="info" />
24+
<DeprecatedMethod errorLevel="info" />
25+
<DeprecatedProperty errorLevel="info" />
26+
<DeprecatedTrait errorLevel="info" />
27+
</issueHandlers>
1828
</psalm>

0 commit comments

Comments
 (0)