Commit 03013a2
iitenkida7
Cast Content-Length header value to string to avoid psr7 deprecation
guzzlehttp/psr7 2.11 deprecates passing a non-string to
MessageInterface::withHeader(), and 3.0 will require string|string[].
mb_strlen() returns an int, so every request with a body emits:
Passing int to MessageInterface::withHeader() is deprecated;
guzzlehttp/psr7 3.0 requires string|string[].
Cast the value to string to silence the deprecation and stay
forward-compatible with psr7 3.0.1 parent 3c41a5e commit 03013a2
2 files changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
210 | | - | |
| 210 | + | |
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
| |||
0 commit comments