Commit Graph

52506 Commits

Author SHA1 Message Date
Alexander M. Turek
67d2a20363 minor #39441 Fix CS in changelogs (jderusse)
This PR was merged into the 5.3-dev branch.

Discussion
----------

Fix CS in changelogs

| Q             | A
| ------------- | ---
| Branch?       | 5.x
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | -

the last one :)

Commits
-------

fb22eece5e Fix CS in changelogs
2020-12-10 22:47:47 +01:00
Jérémy Derussé
fb22eece5e
Fix CS in changelogs 2020-12-10 22:15:07 +01:00
Jérémy Derussé
61d9514297
Merge branch '5.2' into 5.x
* 5.2:
  Fix CS in Changelogs in 5.2
2020-12-10 22:04:12 +01:00
Nicolas Grekas
fccb4c9239 minor #39423 [Messenger] Added more descriptive exception message when handling of a message failed (loevgaard)
This PR was squashed before being merged into the 5.3-dev branch.

Discussion
----------

[Messenger] Added more descriptive exception message when handling of a message failed

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no (more of a patch thing)
| New feature?  | no
| Deprecations? | no
| License       | MIT

I use Symfony Messenger extensively and I run into the `HandlerFailedException` from time to time. What bothers me is that the exception doesn't carry the name of the message that failed right there in the exception message.

Here is an example from Sentry:

![image](https://user-images.githubusercontent.com/2412177/101757346-572eda00-3ad7-11eb-9f57-6ba2b043594d.png)

As you can see I get the error message, but I have to look through all my messages (in different bundles etc) to find the sinner.

This PR adds the message name directly to the exception message.

Commits
-------

d985ca9a6e [Messenger] Added more descriptive exception message when handling of a message failed
2020-12-10 21:24:41 +01:00
Joachim Løvgaard
d985ca9a6e [Messenger] Added more descriptive exception message when handling of a message failed 2020-12-10 21:24:28 +01:00
Alexander M. Turek
0114f12e47 minor #39439 Fix CS in Changelogs in 5.2 (jderusse)
This PR was merged into the 5.2 branch.

Discussion
----------

Fix CS in Changelogs in 5.2

| Q             | A
| ------------- | ---
| Branch?       | 5.2
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | -

Commits
-------

25a8a0a81b Fix CS in Changelogs in 5.2
2020-12-10 21:11:44 +01:00
Jérémy Derussé
25a8a0a81b
Fix CS in Changelogs in 5.2 2020-12-10 21:03:43 +01:00
Nicolas Grekas
e4febad057 Merge branch '5.2' into 5.x
* 5.2:
  Fix licence
  Fix CS in link binary
  [Cache] remove no-op
  Fix CS in Changelogs
  [Notifier][Sinch] Add tests
  [Notifier] [Nexmo] Add tests
  [Notifier][OvhCloud] Add tests
  [Notifier] [Free Mobile] Rename method to match other bridges
  [Cache] fix setting "read_timeout" when using Redis
  Fix CS in changelogs
  [Notifier] Streamline README files
2020-12-10 21:00:07 +01:00
Alexander M. Turek
e4f757d948 Merge branch '5.1' into 5.2
* 5.1:
  Fix licence
  Fix CS in link binary
  [Cache] remove no-op
  Fix CS in Changelogs
  [Notifier][Sinch] Add tests
  [Notifier] [Nexmo] Add tests
  [Notifier][OvhCloud] Add tests
  [Notifier] [Free Mobile] Rename method to match other bridges
  [Cache] fix setting "read_timeout" when using Redis
  Fix CS in changelogs
  [Notifier] Streamline README files
2020-12-10 20:16:15 +01:00
Alexander M. Turek
50dbc6ebc9 Merge branch '4.4' into 5.1
* 4.4:
  Fix licence
2020-12-10 20:13:27 +01:00
Alexander M. Turek
59d32c1e72 minor #39383 [Notifier] Streamline README files (OskarStark)
This PR was merged into the 5.1 branch.

Discussion
----------

[Notifier] Streamline README files

| Q             | A
| ------------- | ---
| Branch?       | 5.1
| Bug fix?      | no
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | --
| License       | MIT
| Doc PR        | --

This should be considered a bug fix as it does not touches any PHP file.

I will continue the work for `5.2` branch after the merge

Commits
-------

dfddc899ce [Notifier] Streamline README files
2020-12-10 19:54:36 +01:00
Robin Chalas
4ad158e519 minor #39437 Fix licence (jderusse)
This PR was merged into the 4.4 branch.

Discussion
----------

Fix licence

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | -

Backport of #39435 for 4.4 (the file has been renamed and the git history trapped me)

Commits
-------

6d7893cdaa Fix licence
2020-12-10 19:19:49 +01:00
Jérémy Derussé
6d7893cdaa
Fix licence 2020-12-10 19:10:51 +01:00
Nicolas Grekas
9b8479b599 Merge branch '4.4' into 5.1
* 4.4:
  Fix CS in link binary
2020-12-10 19:05:50 +01:00
Nicolas Grekas
4a0237f542 minor #39436 Fix CS in link binary (jderusse)
This PR was merged into the 4.4 branch.

Discussion
----------

Fix CS in link binary

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | -

I missed this file. Sorry :(

Commits
-------

7f6c90ceec Fix CS in link binary
2020-12-10 19:05:29 +01:00
Jérémy Derussé
7f6c90ceec
Fix CS in link binary 2020-12-10 19:02:00 +01:00
Nicolas Grekas
eb1a490261 minor #39435 Fix CS in Changelogs in 5.1 (jderusse)
This PR was merged into the 5.1 branch.

Discussion
----------

Fix CS in Changelogs in 5.1

| Q             | A
| ------------- | ---
| Branch?       | 5.1
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | -

Commits
-------

4557e4d55d Fix CS in Changelogs
2020-12-10 18:59:56 +01:00
Nicolas Grekas
4e7d0c16cd Merge branch '4.4' into 5.1
* 4.4:
  [Cache] remove no-op
2020-12-10 18:56:50 +01:00
Nicolas Grekas
0bc3deeebd [Cache] remove no-op 2020-12-10 18:56:42 +01:00
Jérémy Derussé
4557e4d55d
Fix CS in Changelogs 2020-12-10 18:56:13 +01:00
Nicolas Grekas
8b4bfbaf18 minor #39406 [Notifier] [Sinch] Add tests (OskarStark, derrabus)
This PR was merged into the 5.1 branch.

Discussion
----------

[Notifier] [Sinch] Add tests

| Q             | A
| ------------- | ---
| Branch?       | 5.1
| Bug fix?      | no
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | ---
| License       | MIT
| Doc PR        | ---

Commits
-------

46d5fb1f30 [Notifier][Sinch] Add tests
2020-12-10 18:52:20 +01:00
Oskar Stark
46d5fb1f30 [Notifier][Sinch] Add tests 2020-12-10 18:52:05 +01:00
Nicolas Grekas
185ba9cc9a minor #39404 [Notifier] [Nexmo] Add tests (OskarStark)
This PR was squashed before being merged into the 5.1 branch.

Discussion
----------

[Notifier] [Nexmo] Add tests

| Q             | A
| ------------- | ---
| Branch?       | 5.1
| Bug fix?      | yes
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | ---
| License       | MIT
| Doc PR        | ---

Commits
-------

8e566ef84d [Notifier] [Nexmo] Add tests
2020-12-10 18:50:52 +01:00
Oskar Stark
8e566ef84d [Notifier] [Nexmo] Add tests 2020-12-10 18:50:45 +01:00
Nicolas Grekas
f940bf104c minor #39408 [Notifier] [OvhCloud] Add tests (OskarStark, derrabus)
This PR was merged into the 5.1 branch.

Discussion
----------

[Notifier] [OvhCloud] Add tests

| Q             | A
| ------------- | ---
| Branch?       | 5.1
| Bug fix?      | yes
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | ---
| License       | MIT
| Doc PR        | ---

Commits
-------

0c3fe30513 [Notifier][OvhCloud] Add tests
2020-12-10 18:49:32 +01:00
Oskar Stark
0c3fe30513 [Notifier][OvhCloud] Add tests 2020-12-10 18:49:11 +01:00
Nicolas Grekas
ec23ebeec9 minor #39426 [Notifier] [Free Mobile] Rename method to match other bridges (OskarStark)
This PR was squashed before being merged into the 5.1 branch.

Discussion
----------

[Notifier] [Free Mobile] Rename method to match other bridges

| Q             | A
| ------------- | ---
| Branch?       | 5.1
| Bug fix?      | no
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | ---
| License       | MIT
| Doc PR        | ---

All other bridges use `create*` instead of `init*`

Commits
-------

f53ae7c40a [Notifier] [Free Mobile] Rename method to match other bridges
2020-12-10 18:45:24 +01:00
Oskar Stark
f53ae7c40a [Notifier] [Free Mobile] Rename method to match other bridges 2020-12-10 18:45:17 +01:00
Nicolas Grekas
bec247dbc7 Merge branch '4.4' into 5.1
* 4.4:
  [Cache] fix setting "read_timeout" when using Redis
  Fix CS in changelogs
2020-12-10 18:44:54 +01:00
Nicolas Grekas
9186d149df bug #39433 [Cache] fix setting "read_timeout" when using Redis (nicolas-grekas)
This PR was merged into the 4.4 branch.

Discussion
----------

[Cache] fix setting "read_timeout" when using Redis

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | -

Being inspired by #39431

Commits
-------

7acca31e66 [Cache] fix setting "read_timeout" when using Redis
2020-12-10 18:39:37 +01:00
Nicolas Grekas
f66b853f4a bug #39434 [Cache] Bugfix provide the correct host and port when throwing the exception (renan)
This PR was merged into the 5.3-dev branch.

Discussion
----------

[Cache] Bugfix provide the correct host and port when throwing the exception

| Q             | A
| ------------- | ---
| Branch?       | 5.x
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | none
| License       | MIT
| Doc PR        | none

The message before was including the result of the `getMasterAddrByName` call of which ended with:
```
Failed to retrieve master information from master name "mymaster" and address ":0".
```

Commits
-------

276bbb5e85 [Cache] Bugfix provide the correct host and port when throwing the exception
2020-12-10 18:35:09 +01:00
Renan Gonçalves
276bbb5e85
[Cache] Bugfix provide the correct host and port when throwing the exception 2020-12-10 18:29:00 +01:00
Nicolas Grekas
7acca31e66 [Cache] fix setting "read_timeout" when using Redis 2020-12-10 17:45:19 +01:00
Nicolas Grekas
7c98ee1597 bug #39431 [Cache] Make use of read_timeout in \RedisSentinel and \Redis (ferrastas)
This PR was merged into the 5.3-dev branch.

Discussion
----------

[Cache] Make use of `read_timeout` in `\RedisSentinel` and `\Redis`

| Q             | A
| ------------- | ---
| Branch?       | 5.x
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #39429
| License       | MIT

This is a bugfix for #39363 a feature introduced in 5.x

As described in issue #39429, `\RedisSentinel` accepts an optional read timeout value during construction.
`read_timeout` is already part of the connection options, this PR just make use of it.

Commits
-------

14e36a22d6 [Cache] Make use of `read_timeout` in `\RedisSentinel` and `\Redis`
2020-12-10 17:41:45 +01:00
Robin Chalas
fbe3123de5 minor #39432 Fix CS in changelogs - 4.4 (jderusse)
This PR was merged into the 4.4 branch.

Discussion
----------

Fix CS in changelogs - 4.4

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | -

I'm note sure it worth applying this patch on lower versions...

Commits
-------

a46cff26c6 Fix CS in changelogs
2020-12-10 17:38:45 +01:00
Jérémy Derussé
a46cff26c6
Fix CS in changelogs 2020-12-10 17:34:26 +01:00
Ferran Vidal
14e36a22d6
[Cache] Make use of read_timeout in \RedisSentinel and \Redis
Both classes have an optional argument `$readTimeout` that can be set during
initialization for `\RedisSentinel` and during `connect`/`pconnect`
respectively.
2020-12-10 16:38:46 +01:00
Alexander M. Turek
19b20abf46 Merge branch '5.2' into 5.x
* 5.2:
  Fix content swallowed by AsyncClient initializer
  [Serializer][Validator] Mention annotation loaders handle PHP8 attributes
  [Notifier] [Twilio] Fix tests
  [Cache] Prevent notice on case matching metadata trick
  [Notifier][Slack] Remove :void from test methods
  Fix CS
  [Notifier][Discord] Make webhookId argument required
  [DoctrineBridge] no-op RegisterUidTypePass if DBAL types aren't loaded
  [Notifier] Remove @internal annotation from notifier transports
  [Notifier] Remove @internal annotation from notifier transports
  [Notifier][Twilio] Add tests
  [Notifier][Free Mobile] Tests
  [DI] The default index method wasn't used if the "index_by" attribute is missing
2020-12-10 15:19:48 +01:00
Alexander M. Turek
4f08a8a0dd Merge branch '5.1' into 5.2
* 5.1:
  [Notifier] [Twilio] Fix tests
  [Cache] Prevent notice on case matching metadata trick
  [Notifier][Slack] Remove :void from test methods
  [Notifier] Remove @internal annotation from notifier transports
  [Notifier][Twilio] Add tests
  [Notifier][Free Mobile] Tests
  [DI] The default index method wasn't used if the "index_by" attribute is missing
2020-12-10 15:02:11 +01:00
Maxime Steinhausser
243b370c72 minor #39427 [Serializer][Validator] Mention annotation loaders handle PHP8 attributes (ogizanagi)
This PR was merged into the 5.2 branch.

Discussion
----------

[Serializer][Validator] Mention annotation loaders handle PHP8 attributes

| Q             | A
| ------------- | ---
| Branch?       | 5.2 <!-- see below -->
| Bug fix?      | no
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | N/A <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License       | MIT
| Doc PR        | N/A

Just a small note for the ones reading docblocks first and expecting to find a PhpAttributeLoader or whatever: the annotation loaders handle both doctrine annotations & PHP 8 attributes.
The route loader already mentions this.

Commits
-------

3cbe758df3 [Serializer][Validator] Mention annotation loaders handle PHP8 attributes
2020-12-10 14:55:54 +01:00
Alexander M. Turek
651bd12d75 Merge branch '4.4' into 5.1
* 4.4:
  [Cache] Prevent notice on case matching metadata trick
  [DI] The default index method wasn't used if the "index_by" attribute is missing
2020-12-10 14:41:20 +01:00
Nicolas Grekas
359bcc5686 bug #39228 [HttpClient] Fix content swallowed by AsyncClient initializer (jderusse)
This PR was merged into the 5.2 branch.

Discussion
----------

[HttpClient] Fix content swallowed by AsyncClient initializer

| Q             | A
| ------------- | ---
| Branch?       | 5.2
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | -

I'm not sure if it should be fixed in RetryableHttpClient or AsycClient.
The issue is: when the Strategy needs the body to take a decision BUT decide to NOT retry the request, the content is "lost"

In fact, when the first chunk is yield, the AsyncResponse's initializer is stopped, and nothing consume the remaining chunks. Moreover, because the `passthru` were disabled before yielding the first chunk in RetryableHttpClient, the callback is never called again to yield the remaining content.

Commits
-------

d324271691 Fix content swallowed by AsyncClient initializer
2020-12-10 14:39:20 +01:00
Jérémy Derussé
d324271691 Fix content swallowed by AsyncClient initializer 2020-12-10 14:39:06 +01:00
Maxime Steinhausser
3cbe758df3 [Serializer][Validator] Mention annotation loaders handle PHP8 attributes 2020-12-10 14:01:49 +01:00
Alexander M. Turek
b6f3bdba9f minor #39425 [Notifier] [Twilio] Fix tests (OskarStark)
This PR was squashed before being merged into the 5.1 branch.

Discussion
----------

[Notifier] [Twilio] Fix tests

| Q             | A
| ------------- | ---
| Branch?       | 5.1
| Bug fix?      | no
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | ---
| License       | MIT
| Doc PR        | ---

PR based on https://github.com/symfony/symfony/pull/39404#issuecomment-742449997 from @derrabus

Lowest build was failing, so I bumped `symfony/notifier` to `5.1`, should be all 💚  now! 🙏

Commits
-------

f7f5f869cf [Notifier] [Twilio] Fix tests
2020-12-10 13:14:28 +01:00
Oskar Stark
f7f5f869cf [Notifier] [Twilio] Fix tests 2020-12-10 13:14:12 +01:00
Oskar Stark
dfddc899ce [Notifier] Streamline README files 2020-12-10 08:54:19 +01:00
Nicolas Grekas
f4a02b4603 bug #39420 [Cache] Prevent notice on case matching metadata trick (bastnic)
This PR was submitted for the 5.1 branch but it was merged into the 4.4 branch instead.

Discussion
----------

[Cache] Prevent notice on case matching metadata trick

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       |
| License       | MIT

On saving an array of one element with a int key of strlen 10
it matches the first conditions of the trick used to save metadata.

> Notice: Trying to access array offset on value of type int

Casting it to string fixes it.

Commits
-------

a91ac74906 [Cache] Prevent notice on case matching metadata trick
2020-12-10 08:50:58 +01:00
Bastien Jaillot
a91ac74906 [Cache] Prevent notice on case matching metadata trick
On saving an array of one element with a int key of strlen 10
it matches the first conditions of the trick used to save metadata.

> Notice: Trying to access array offset on value of type int

Casting it to string fixes it.
2020-12-10 08:50:50 +01:00
Nicolas Grekas
fc59592c6d minor #39422 [Notifier] [Slack] Remove :void from test methods (OskarStark)
This PR was merged into the 5.1 branch.

Discussion
----------

[Notifier] [Slack] Remove :void from test methods

| Q             | A
| ------------- | ---
| Branch?       | 5.1
| Bug fix?      | no
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | ---
| License       | MIT
| Doc PR        | ---

Follows https://github.com/symfony/symfony/pull/39413/files#r539545354 by @nicolas-grekas

Commits
-------

483ea426eb [Notifier][Slack] Remove :void from test methods
2020-12-10 08:47:22 +01:00