Commit 1ee474f
committed
bug #48112 [HttpFoundation] Compare cookie with null value as empty string in ResponseCookieValueSame (fancyweb)
This PR was merged into the 4.4 branch.
Discussion
----------
[HttpFoundation] Compare cookie with null value as empty string in ResponseCookieValueSame
| Q | A
| ------------- | ---
| Branch? | 4.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Tickets | #48105
| License | MIT
| Doc PR | -
We already consider `null` as `''` when we "compute" the cookie:
https://github.com/symfony/symfony/blob/4d4c411a609ef62dcbdfd6f309deab76a7431135/src/Symfony/Component/HttpFoundation/Cookie.php#L253
So in the related issue, `self::assertResponseCookieValueSame('SOME_COOKIE_NAME', '');` could be used. WDYT `@werwolf666`?
Commits
-------
0cc7368 [HttpFoundation] Compare cookie with null value as empty string in ResponseCookieValueSameFile tree
2 files changed
+9
-1
lines changed- src/Symfony/Component/HttpFoundation
- Tests/Test/Constraint
- Test/Constraint
2 files changed
+9
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
44 | 52 | | |
0 commit comments