Skip to content

Commit

Permalink
Move KeyDumpSigner to Tests\ namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Slamdunk committed Nov 7, 2022
1 parent 0c79509 commit 0775845
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 24 deletions.
18 changes: 0 additions & 18 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,3 @@ parameters:
paths:
- src
- tests

ignoreErrors:
- """
#^Call to deprecated method fromEmptyData\\(\\) of class Lcobucci\\\\JWT\\\\Token\\\\Signature:
Deprecated since v4\\.3$#
"""
- """
#^Call to deprecated method forUnsecuredSigner\\(\\) of class Lcobucci\\\\JWT\\\\Configuration:
Deprecated since v4\\.3$#
"""
- """
#^Call to deprecated method empty\\(\\) of class Lcobucci\\\\JWT\\\\Signer\\\\Key\\\\InMemory:
Deprecated since v4\\.3$#
"""
- """
#^.+ of deprecated class Lcobucci\\\\JWT\\\\Signer\\\\None:
Deprecated since v4\\.3$#
"""
4 changes: 2 additions & 2 deletions src/Signer/Hmac.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ final public function verify(string $expected, string $payload, Key $key): bool

/**
* @internal
*
* @return non-empty-string
*
* @return non-empty-string
*/
abstract public function algorithm(): string;

Expand Down
1 change: 0 additions & 1 deletion tests/ConfigurationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
* @uses \Lcobucci\JWT\Encoding\MicrosecondBasedDateConversion
* @uses \Lcobucci\JWT\Encoding\UnifyAudience
* @uses \Lcobucci\JWT\Signer\Key\InMemory
* @uses \Lcobucci\JWT\Signer\None
* @uses \Lcobucci\JWT\Token\Builder
* @uses \Lcobucci\JWT\Token\Parser
* @uses \Lcobucci\JWT\Validation\Validator
Expand Down
3 changes: 2 additions & 1 deletion tests/KeyDumpSigner.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<?php
declare(strict_types=1);

namespace Lcobucci\JWT;
namespace Lcobucci\JWT\Tests;

use Lcobucci\JWT\Signer;
use Lcobucci\JWT\Signer\Key;

final class KeyDumpSigner implements Signer
Expand Down
1 change: 0 additions & 1 deletion tests/TimeFractionPrecisionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use DateTimeImmutable;
use Lcobucci\JWT\Configuration;
use Lcobucci\JWT\Encoding\JoseEncoder;
use Lcobucci\JWT\KeyDumpSigner;
use Lcobucci\JWT\Signer\Key\InMemory;
use Lcobucci\JWT\Token\Plain;
use PHPUnit\Framework\TestCase;
Expand Down
1 change: 0 additions & 1 deletion tests/UnsignedTokenTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use DateTimeImmutable;
use Lcobucci\Clock\FrozenClock;
use Lcobucci\JWT\Configuration;
use Lcobucci\JWT\KeyDumpSigner;
use Lcobucci\JWT\Signer\Key\InMemory;
use Lcobucci\JWT\Token;
use Lcobucci\JWT\Validation\Constraint;
Expand Down

0 comments on commit 0775845

Please sign in to comment.