Skip to content

Commit ede65ee

Browse files
committed
fix SimpleJWT for new version
1 parent 749e1e4 commit ede65ee

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"phpspec/prophecy-phpunit": "^2.1",
2525
"sebastian/comparator": ">=1.2.3",
2626
"phpseclib/phpseclib": "^3.0.35",
27-
"kelvinmo/simplejwt": "1.1.0",
27+
"kelvinmo/simplejwt": "^1.1.0",
2828
"webmozart/assert": "^1.11",
2929
"symfony/process": "^6.0||^7.0",
3030
"symfony/filesystem": "^6.3||^7.3"

tests/AccessTokenTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ protected function callSimpleJwtDecode(array $args = [])
594594
{
595595
if (isset($this->mocks['decode'])) {
596596
$claims = call_user_func_array($this->mocks['decode'], $args);
597-
return new SimpleJWT(null, (array) $claims);
597+
return new SimpleJWT([], (array) $claims);
598598
}
599599

600600
return parent::callSimpleJwtDecode($args);

0 commit comments

Comments
 (0)