Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for lcobucci/jwt:v5 #560

Merged
merged 1 commit into from
Feb 26, 2023
Merged

Conversation

Slamdunk
Copy link
Member

No description provided.

@@ -124,6 +124,7 @@ public function testInjectsSessionInResponseCookies(callable $middlewareFactory)
$token = $this->getCookie($response)->getValue();

self::assertIsString($token);
self::assertTrue($token !== '');
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would have loved to write this as self::assertNotSame('', $token); but unfortunately that specific assertion lacks the @psalm-assert spec 😢 https://github.com/sebastianbergmann/phpunit/blob/e733b040fd42101e6805ead23221db01ca39e259/src/Framework/Assert.php#L1387

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Eh, at least it's a test only 👍

Copy link
Member

@Ocramius Ocramius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Slamdunk!

@@ -124,6 +124,7 @@ public function testInjectsSessionInResponseCookies(callable $middlewareFactory)
$token = $this->getCookie($response)->getValue();

self::assertIsString($token);
self::assertTrue($token !== '');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Eh, at least it's a test only 👍

@Ocramius Ocramius self-assigned this Feb 26, 2023
@Ocramius Ocramius added enhancement dependencies Pull requests that update a dependency file labels Feb 26, 2023
@Ocramius Ocramius added this to the 8.15.0 milestone Feb 26, 2023
@Ocramius Ocramius merged commit 480cf58 into psr7-sessions:8.15.x Feb 26, 2023
@Slamdunk Slamdunk deleted the jwt_5 branch February 26, 2023 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants