Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Rector/JwtAuthUpgradeRector.php
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ private function createRules(?Array_ $paths, ?Array_ $ignore): ?Array_
}

if ($ignore !== null) {
$args[] = new Arg($ignore, name: new Identifier('ignnore'));
$args[] = new Arg($ignore, name: new Identifier('ignore'));
}

$pathObj = new New_(new Name(RequestPathRule::class), $args);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ namespace JimTools\JwtAuth\Test\Rector\JwtAuthUpgradeRector\Fixture;

use JimTools\JwtAuth\Middleware\JwtAuthentication;

$auth = new JwtAuthentication(new JimTools\JwtAuth\Options(), new JimTools\JwtAuth\Decoder\FirebaseDecoder(new JimTools\JwtAuth\Secret($_ENV['JWT_SECRET'], 'HS256')), [new JimTools\JwtAuth\Rules\RequestPathRule(path: ['/', '/api'], ignnore: ['/api/auth']), new JimTools\JwtAuth\Rules\RequestMethodRule()]);
$auth = new JwtAuthentication(new JimTools\JwtAuth\Options(), new JimTools\JwtAuth\Decoder\FirebaseDecoder(new JimTools\JwtAuth\Secret($_ENV['JWT_SECRET'], 'HS256')), [new JimTools\JwtAuth\Rules\RequestPathRule(path: ['/', '/api'], ignore: ['/api/auth']), new JimTools\JwtAuth\Rules\RequestMethodRule()]);

?>