Commit Graph

43058 Commits

Author SHA1 Message Date
Nicolas Grekas
3ffe5573e9 Add missing @return annotations to fix deprecations on PHP 8 2020-12-23 16:11:26 +01:00
Nicolas Grekas
80c5aeb6a2 bug #39603 [TwigBridge] allow null values in form helpers (xabbuh)
This PR was merged into the 5.2 branch.

Discussion
----------

[TwigBridge] allow null values in form helpers

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

Commits
-------

f908047c6b allow null values in form helpers
2020-12-23 15:54:41 +01:00
Alexander M. Turek
9e56c00f9c bug #39584 [Security] Add RememberMe Badge to LoginLinkAuthenticator (jderusse)
This PR was merged into the 5.2 branch.

Discussion
----------

[Security] Add RememberMe Badge to LoginLinkAuthenticator

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

I'm replacing a custom home-made magic link authenticator by the Symfony one, and I missed this behavior. I had to use a EventListener to add the badge to the passeport.

I'm not sure, if the badge were missing on purpose /cc @weaverryan @wouterj

Commits
-------

d38fc4d678 Add RememberMe Badge to LoginLinkAuthenticator
2020-12-22 20:03:33 +01:00
Nicolas Grekas
389f5304c7 [ProxyManagerBridge] fix PHP notice, switch to "friendsofphp/proxy-manager-lts" 2020-12-22 17:08:05 +01:00
Alexander M. Turek
2a3708ef74 Fix tests 2020-12-22 15:53:22 +01:00
Alexander M. Turek
3c753e6eff Merge branch '5.1' into 5.2
* 5.1:
  [Notifier] [DX] Abstract test cases
  [Intl] Update the ICU data to 68.2
2020-12-22 15:40:43 +01:00
Alexander M. Turek
1ee1659601 minor #39495 [Notifier] [DX] Abstract test cases (OskarStark)
This PR was squashed before being merged into the 5.1 branch.

Discussion
----------

[Notifier] [DX] Abstract test cases

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

This PR

* [x] adds a new _abstract_ `TransportTestCase`
* [x] adds a new _abstract_ `TransportFactoryTestCase` (code is mainly taken from the `Mailer/TransportFactoryTestCase`)

We have a lot of code duplication in the notifier bridges

### Todos
* [x] check if we want this
* [x]  I would want to use Dsn strings (like already used in the notifier bridge tests) instead of objects for the providers, what do you think? For me it is more readably
* [x] update all bridges
* [x] Bump notifier to `~5.1.10`

### Questions
* [x] is it Ok to consider this a bugfix and merge into `5.1`?
* [x] shall I prefix the abstract test cases with `Abstract` ? As we did the same for Mailer, I would say no

@symfony/mergers have to change ^5.2 into ^5.2.1

Commits
-------

79379b71f4 [Notifier] [DX] Abstract test cases
2020-12-22 15:13:56 +01:00
Oskar Stark
79379b71f4 [Notifier] [DX] Abstract test cases 2020-12-22 15:13:46 +01:00
Alexander M. Turek
c900018758 Merge branch '4.4' into 5.1
* 4.4:
  [Intl] Update the ICU data to 68.2
2020-12-22 13:16:28 +01:00
Christian Flothmann
f908047c6b allow null values in form helpers 2020-12-22 09:11:35 +01:00
Oskar Stark
d9eb1a1f6e [Notifier] [Discord] Use sprintf for exception message 2020-12-22 08:30:35 +01:00
Alexander M. Turek
18927fe54a minor #39573 [Intl] Update the ICU data to 68.2 (jakzal)
This PR was merged into the 4.4 branch.

Discussion
----------

[Intl] Update the ICU data to 68.2

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

Commits
-------

4573965f74 [Intl] Update the ICU data to 68.2
2020-12-21 17:14:24 +01:00
Alexander M. Turek
d499cac462 minor #39576 [Notifier] add "symfony/polyfill-mbstring" as dep of the Discord bridge (nicolas-grekas)
This PR was merged into the 5.2 branch.

Discussion
----------

[Notifier] add "symfony/polyfill-mbstring" as dep of the Discord bridge

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

Commits
-------

e61f0c50fa [Notifier] add "symfony/polyfill-mbstring" as dep of the Discord bridge
2020-12-21 16:41:57 +01:00
Alexander M. Turek
7bc051f260 Merge branch '5.1' into 5.2
* 5.1:
  Bump Symfony version to 5.1.11
  Update VERSION for 5.1.10
  Update CHANGELOG for 5.1.10
  Bump Symfony version to 4.4.19
  Update VERSION for 4.4.18
  Update CONTRIBUTORS for 4.4.18
  Update CHANGELOG for 4.4.18
  [Serializer] Fix DenormalizableInterface::denormalize() return type declaration in docblock
2020-12-21 16:33:14 +01:00
Alexander M. Turek
74b132fca2 Merge branch '4.4' into 5.1
* 4.4:
  Bump Symfony version to 4.4.19
  Update VERSION for 4.4.18
  Update CONTRIBUTORS for 4.4.18
  Update CHANGELOG for 4.4.18
  [Serializer] Fix DenormalizableInterface::denormalize() return type declaration in docblock
2020-12-21 16:29:43 +01:00
Jérémy Derussé
d38fc4d678
Add RememberMe Badge to LoginLinkAuthenticator 2020-12-21 09:54:09 +01:00
Olivier Dolbeau
f8a95b3965 Supports empty path for slack DSN 2020-12-21 09:54:05 +01:00
Robin Chalas
c4ddafb655 minor #39565 [Notifier] GoogleChat/FreeMobile: Declare incompatibility with 5.3 (derrabus)
This PR was merged into the 5.2 branch.

Discussion
----------

[Notifier] GoogleChat/FreeMobile: Declare incompatibility with 5.3

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

I missed two bridges. 😓  @nicolas-grekas

Commits
-------

b9eca9fcc9 [Notifier] GoogleChat/FreeMobile: Declare incompatibility with 5.3.
2020-12-20 15:19:17 +01:00
Alexander M. Turek
8f7a8d345a minor #39561 [Serializer] Fix DenormalizableInterface::denormalize() return type declaration in docblock (jeroennoten)
This PR was merged into the 4.4 branch.

Discussion
----------

[Serializer] Fix DenormalizableInterface::denormalize() return type declaration in docblock

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

DenormalizableInterface::denormalize() should not return anything, so the `@return` declaration should be removed. If you look at the usage in `CustomNormalizer::denormalize()`, it becomes clear that this method shouldn't return anything:
```php
    public function denormalize($data, $type, $format = null, array $context = [])
    {
        $object = $this->extractObjectToPopulate($type, $context) ?: new $type();
        $object->denormalize($this->serializer, $data, $format, $context);

        return $object;
    }
```

Commits
-------

00c90aed51 [Serializer] Fix DenormalizableInterface::denormalize() return type declaration in docblock
2020-12-20 14:32:21 +01:00
Nicolas Grekas
e61f0c50fa [Notifier] add "symfony/polyfill-mbstring" as dep of the Discord bridge 2020-12-19 15:24:47 +01:00
Jakub Zalas
4573965f74
[Intl] Update the ICU data to 68.2 2020-12-19 12:57:32 +01:00
Robin Chalas
fd27c4dd97 [SecurityBundle] Fix transient test 2020-12-19 11:10:19 +01:00
Fabien Potencier
ba849c0d21 Bump Symfony version to 5.2.2 2020-12-18 15:09:16 +01:00
Fabien Potencier
8c76f4b2fc Update VERSION for 5.2.1 2020-12-18 14:49:39 +01:00
Fabien Potencier
a969b99417 Bump Symfony version to 5.1.11 2020-12-18 14:48:52 +01:00
Alexander M. Turek
b9eca9fcc9 [Notifier] GoogleChat/FreeMobile: Declare incompatibility with 5.3. 2020-12-18 14:47:30 +01:00
Fabien Potencier
3213a921e5 Update VERSION for 5.1.10 2020-12-18 14:43:29 +01:00
Fabien Potencier
c1b9323f30 Bump Symfony version to 4.4.19 2020-12-18 14:39:05 +01:00
Fabien Potencier
92334dd0c5 Update VERSION for 4.4.18 2020-12-18 14:32:33 +01:00
Jeroen Noten
00c90aed51
[Serializer] Fix DenormalizableInterface::denormalize() return type declaration in docblock 2020-12-18 14:21:55 +01:00
Alexander M. Turek
b0c2c4e46e [Notifier] Prepare bridges for the upcoming return type change. 2020-12-18 13:41:51 +01:00
Jérémy Derussé
79718fb70f
Fix NFS detection on macOs 2020-12-18 12:40:59 +01:00
Nicolas Grekas
5c03d2d085 Fix merge 2020-12-18 11:41:23 +01:00
Nicolas Grekas
26ce5b4c20 Merge branch '5.1' into 5.2
* 5.1:
  [Notifier] [Mattermost] Host is required
2020-12-18 11:35:32 +01:00
Nicolas Grekas
8797138e8d bug #39545 [Notifier] [Mattermost] Host is required (OskarStark)
This PR was squashed before being merged into the 5.1 branch.

Discussion
----------

[Notifier] [Mattermost] Host is required

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

This bridge is the only one right now which cannot use `default` as host in the DSN, otherwise it would fall back to:
090b4256f0/src/Symfony/Component/Notifier/Transport/AbstractTransport.php (L30)

it could also not use:
090b4256f0/src/Symfony/Component/Notifier/Transport/AbstractTransport.php (L83-L86)

Based on the [documentation](https://api.mattermost.com/#tag/authentication) you must use your specific url like:
`your-mattermost-url.com/api/v4/...`

Using `localhost` would have weird side-effects.

Can you confirm this @thePanz , as you provided the bridge?

friendly ping @seb37800, you fixed some bugs in this transport

### Todos after merge
* [ ] adjust recipes with new DSN
* [ ] update the docs

Commits
-------

cd5b48003f [Notifier] [Mattermost] Host is required
2020-12-18 11:34:54 +01:00
Oskar Stark
cd5b48003f [Notifier] [Mattermost] Host is required 2020-12-18 11:34:45 +01:00
Nicolas Grekas
7b4af4ba13 bug #39548 [Notifier] [Infobip][Zulip] Host is required (OskarStark)
This PR was squashed before being merged into the 5.2 branch.

Discussion
----------

[Notifier] [Infobip][Zulip] Host is required

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

### Todos after merge
* [ ] adjust recipes with new DSN
* [ ] update the docs

Commits
-------

cfd932e036 [Notifier] [Infobip][Zulip] Host is required
2020-12-18 11:21:23 +01:00
Oskar Stark
cfd932e036 [Notifier] [Infobip][Zulip] Host is required 2020-12-18 11:21:14 +01:00
Nicolas Grekas
0625c2ada4 bug #39550 [HttpFoundation] keep turning dots to underscores when using Request::create() (nicolas-grekas)
This PR was merged into the 5.2 branch.

Discussion
----------

[HttpFoundation] keep turning dots to underscores when using Request::create()

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

Commits
-------

cda81ccccd [HttpFoundation] keep turning dots to underscores when using Request::create()
2020-12-18 11:11:15 +01:00
Nicolas Grekas
fc160a14da [Notifier] Fix tests 2020-12-18 11:08:59 +01:00
Nicolas Grekas
cda81ccccd [HttpFoundation] keep turning dots to underscores when using Request::create() 2020-12-18 11:00:10 +01:00
Fabien Potencier
9e87661911 Merge branch '5.1' into 5.2
* 5.1:
  Remove :void in test function signatures
2020-12-18 09:03:05 +01:00
Fabien Potencier
090b4256f0 Merge branch '4.4' into 5.1
* 4.4:
  Remove :void in test function signatures
2020-12-18 09:02:46 +01:00
Fabien Potencier
c60f0b8e02 Fix CS 2020-12-18 08:54:33 +01:00
Fabien Potencier
185f04dfd4 Fi CS 2020-12-18 08:52:49 +01:00
Fabien Potencier
a566eeeee0 minor #39428 [Notifier] Rework/streamline bridges (5.2) (OskarStark)
This PR was squashed before being merged into the 5.2 branch.

Discussion
----------

[Notifier] Rework/streamline bridges (5.2)

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

This PR

* add missing tests
* pull up scheme check (check scheme first and then for required options)
* streamlines README.md files

While working on adding tests for `symfony/esendex-notifier` I noticed that the `EsendexTransport` has the following signature:
613ac0c0e9/src/Symfony/Component/Notifier/Bridge/Esendex/EsendexTransport.php (L36)

and is resolved by the `EsendexTransportFactory` like:
613ac0c0e9/src/Symfony/Component/Notifier/Bridge/Esendex/EsendexTransportFactory.php (L30)

but the `README` exposes the DSN like:
```
esendex://EMAIL:PASSWORD@default?accountreference=ACCOUNT_REFERENCE&from=FROM
```
as this Bridge is experimental in `5.2`I propose to change the transport signature like, because to me it is more email/password like described in the readme than a "token":
```diff
- public function __construct(string $token, string $accountReference, string $from, HttpClientInterface $client = null,
EventDispatcherInterface $dispatcher = null)
+ public function __construct(string $email, string $password, string $accountReference, string $from, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
```

What do you think?

cc @odolbeau as you provided the Esendex bridge.

Commits
-------

a5d78787e6 [Notifier] Rework/streamline bridges (5.2)
2020-12-18 08:52:08 +01:00
Oskar Stark
a5d78787e6 [Notifier] Rework/streamline bridges (5.2) 2020-12-18 08:52:03 +01:00
Fabien Potencier
47fcf4ad5a Remove :void in test function signatures 2020-12-18 08:41:31 +01:00
Fabien Potencier
7d5ddc756c Merge branch '5.1' into 5.2
* 5.1:
  Remove void return type from test methods
  Added basque translations
  Updated Luxembourgish translations
  [Mailer] Fix parsing Dsn with empty user/password
  Normalize exceptions messages containing methods references
  [Ldap] Incorrect determination of RelativeDistinguishedName for the "move" operation
2020-12-18 08:32:35 +01:00
Fabien Potencier
0dc2d55537 Merge branch '4.4' into 5.1
* 4.4:
  Remove void return type from test methods
  Added basque translations
  Updated Luxembourgish translations
  [Mailer] Fix parsing Dsn with empty user/password
  Normalize exceptions messages containing methods references
  [Ldap] Incorrect determination of RelativeDistinguishedName for the "move" operation
2020-12-18 08:32:24 +01:00
Fabien Potencier
d0da49d201 Merge branch '5.1' into 5.2
* 5.1:
  [Notifier] Fix parsing Dsn with empty user/password
  Remove void return type from test methods
  [Notifier] Use assertSame()
2020-12-18 08:27:35 +01:00
Fabien Potencier
24334cb837 bug #39538 [Notifier] Fix parsing Dsn with empty user/password (OskarStark)
This PR was squashed before being merged into the 5.1 branch.

Discussion
----------

[Notifier] Fix parsing Dsn with empty user/password

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

Same like https://github.com/symfony/symfony/pull/39531, but for Notifier component.

I backported the DsnTest from `5.2` to `5.1`

Commits
-------

a80409af25 [Notifier] Fix parsing Dsn with empty user/password
2020-12-18 08:25:35 +01:00
Oskar Stark
a80409af25 [Notifier] Fix parsing Dsn with empty user/password 2020-12-18 08:25:29 +01:00
Oskar Stark
78da70615b Remove void return type from test methods 2020-12-18 07:28:27 +01:00
Oskar Stark
f126cf1304 Remove void return type from test methods 2020-12-18 07:23:32 +01:00
Fabien Potencier
5eeb95726d minor #39534 Normalize exceptions messages containing methods references (ogizanagi)
This PR was merged into the 4.4 branch.

Discussion
----------

Normalize exceptions messages containing methods references

| Q             | A
| ------------- | ---
| Branch?       | 4.4 <!-- 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       | Fix https://github.com/symfony/symfony/pull/39399#discussion_r544972437 <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License       | MIT
| Doc PR        | N/A

Normalizes across the codebase any exception message mentioning methods to contain a trailing `()`

(Seems OK on 5.1 and 5.2 branch after this on is merged up)

Commits
-------

e2da2acd6d Normalize exceptions messages containing methods references
2020-12-17 17:57:38 +01:00
Iker Ibarguren Berasaluze
37a8e79650 Added basque translations 2020-12-17 17:47:44 +01:00
Fabien Potencier
7b3461ce79 minor #39391 Updated Luxembourgish translations (mweimerskirch)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

Updated Luxembourgish translations

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

Commits
-------

52b4628709 Updated Luxembourgish translations
2020-12-17 17:44:13 +01:00
Michel Weimerskirch
52b4628709 Updated Luxembourgish translations 2020-12-17 17:44:05 +01:00
Fabien Potencier
72fb034c77 bug #39531 [Mailer] Fix parsing Dsn with empty user/password (OskarStark)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[Mailer] Fix parsing Dsn with empty user/password

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

While working on a PR for Notifier that user and password would be parsed as an empty string, which is not wrong, but not expected IMO. Thi

`scheme://@symfony.com` and `scheme://:@symfony.com` should be a valid scheme with user and pass `null`

Another fix would be to check for `://@` and `://:@` and throw an `InvalidArgumentException` WDYT?

The final solution will then be applied to the Notifier DSN in `5.1`

Commits
-------

041cb46e52 [Mailer] Fix parsing Dsn with empty user/password
2020-12-17 17:39:20 +01:00
Oskar Stark
041cb46e52 [Mailer] Fix parsing Dsn with empty user/password 2020-12-17 17:39:11 +01:00
Fabien Potencier
6ead4a273e bug #39492 [Notifier] [Discord] Use private const and mb_strlen() (OskarStark)
This PR was squashed before being merged into the 5.2 branch.

Discussion
----------

[Notifier] [Discord] Use private const and mb_strlen()

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

like proposed by @nicolas-grekas in https://github.com/symfony/symfony/pull/39444/files#r542288432

Commits
-------

165c87247d [Notifier] [Discord] Use private const and mb_strlen()
2020-12-17 17:31:33 +01:00
Oskar Stark
165c87247d [Notifier] [Discord] Use private const and mb_strlen() 2020-12-17 17:31:25 +01:00
Fabien Potencier
756bab4241 bug #39522 [Notifier] Set message id on SentMessage (OskarStark)
This PR was squashed before being merged into the 5.2 branch.

Discussion
----------

[Notifier] Set message id on SentMessage

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

@ismail1432 what do you think?

Commits
-------

9dd09e632d [Notifier] Set message id on SentMessage
2020-12-17 17:30:10 +01:00
Oskar Stark
9dd09e632d [Notifier] Set message id on SentMessage 2020-12-17 17:30:01 +01:00
Maxime Steinhausser
e2da2acd6d Normalize exceptions messages containing methods references 2020-12-17 14:33:54 +01:00
Artem Stepin
c7e99a2523
[Ldap] Incorrect determination of RelativeDistinguishedName for the "move" operation 2020-12-17 12:39:48 +01:00
Oskar Stark
e61363c1f2 [Notifier] Fix toString when optional parameter is not set 2020-12-17 11:46:37 +01:00
Nicolas Grekas
29d62dfa86 [Notifier] CS fix 2020-12-17 09:59:31 +01:00
Nicolas Grekas
bc6550ec67 minor #39526 [Notifier] Use assertSame() (OskarStark)
This PR was squashed before being merged into the 5.1 branch.

Discussion
----------

[Notifier] Use assertSame()

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

Commits
-------

4a1976b4ef [Notifier] Use assertSame()
2020-12-17 09:34:41 +01:00
Oskar Stark
4a1976b4ef [Notifier] Use assertSame() 2020-12-17 09:34:34 +01:00
Nicolas Grekas
42ad1ece92 [VarDumper] dont hide any nodes until JS is proven to work 2020-12-16 18:02:19 +01:00
Alexander M. Turek
904b05a0de Merge branch '5.1' into 5.2
* 5.1:
  [Notifier] Improve tests (5.1)
  [Notifier] Fix wrong package names
  [Notifier] [Free Mobile] Could not use custom host in DSN
2020-12-16 08:59:53 +01:00
Oskar Stark
5773a46677 [Notifier] Improve tests (5.1) 2020-12-16 08:45:20 +01:00
Alexander M. Turek
6112be33d2 bug #39498 [DoctrineBridge] Guess correct form types for DATE_IMMUTABLE and DATETIME_IMMUTABLE (guillaume-sainthillier)
This PR was squashed before being merged into the 5.2 branch.

Discussion
----------

[DoctrineBridge] Guess correct form types for DATE_IMMUTABLE and DATETIME_IMMUTABLE

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

Rebased PR #39469
Fixes #39468 related to Doctrine Form Type Guesser with DateImmutable type

Commits
-------

238d318e34 [DoctrineBridge] Guess correct form types for DATE_IMMUTABLE and DATETIME_IMMUTABLE
2020-12-16 08:43:23 +01:00
Guillaume Sainthillier
238d318e34 [DoctrineBridge] Guess correct form types for DATE_IMMUTABLE and DATETIME_IMMUTABLE 2020-12-16 08:43:10 +01:00
Fabien Potencier
77960f86a9 bug #39510 [Notifier]  [Free Mobile] Could not use custom host in DSN (OskarStark)
This PR was merged into the 5.1 branch.

Discussion
----------

[Notifier]  [Free Mobile] Could not use custom host in DSN

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

While working on #39509 I discovered, that you cannot set a custom host through the DSN string itself, only by calling `setHost()` method in the transport, which is only possible by **not** using the factory....

I changed it the way all other bridges work. I don't add a testcase for the port, because non of the others have that test.
I plan to implement it in #39495

As this is a bugfix I created an extra PR.

Cheers

EDIT:

Also the host is not allowed to contain `https://` otherwise calling `__toString()` will result in: `freemobile://https://......`

Commits
-------

63350cc19b [Notifier] [Free Mobile] Could not use custom host in DSN
2020-12-15 18:16:25 +01:00
Fabien Potencier
9613b41efa bug #39515 [Notifier] Fix wrong package name (OskarStark)
This PR was merged into the 5.2 branch.

Discussion
----------

[Notifier] Fix wrong package name

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

Same like https://github.com/symfony/symfony/pull/39514 but for `5.2`

Commits
-------

f345ecd966 [Notifier] Fix wrong package name
2020-12-15 14:02:02 +01:00
Fabien Potencier
1a98df5342 bug #39514 [Notifier] Fix wrong package names (OskarStark)
This PR was merged into the 5.1 branch.

Discussion
----------

[Notifier] Fix wrong package names

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

Commits
-------

344437286a [Notifier] Fix wrong package names
2020-12-15 14:01:00 +01:00
Oskar Stark
f345ecd966 [Notifier] Fix wrong package name 2020-12-15 13:50:14 +01:00
Oskar Stark
344437286a [Notifier] Fix wrong package names 2020-12-15 13:48:34 +01:00
Jérémy Derussé
bdf8744c2a
Add missing symfony/deprecation-contracts requirement 2020-12-15 12:53:10 +01:00
Jérémy Derussé
862b19982a
Merge branch '5.1' into 5.2
* 5.1:
  Add missing symfony/deprecation-contracts requirement
2020-12-15 12:52:46 +01:00
Alexander M. Turek
defb90b030 bug #39494 Add missing symfony/deprecation-contracts requirement (jderusse)
This PR was merged into the 5.1 branch.

Discussion
----------

Add missing symfony/deprecation-contracts requirement

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

We should require the `symfony/deprecation-contracts` package in components that call `trigger_deprecated`.

Commits
-------

5ae2364c7e Add missing symfony/deprecation-contracts requirement
2020-12-15 12:05:57 +01:00
Oskar Stark
63350cc19b [Notifier] [Free Mobile] Could not use custom host in DSN 2020-12-15 11:50:27 +01:00
Jérémy Derussé
98601908bb
Dont allow unserializing classes with a destructor - 5.2 2020-12-15 11:45:32 +01:00
Robin Chalas
302b80768a Merge branch '5.1' into 5.2
* 5.1:
  [Uid] Fix tests namespace
2020-12-15 10:12:47 +01:00
Robin Chalas
a7fd98bee8 bug #39360 [FrameworkBundler] Fix cache:clear with buildDir (jderusse)
This PR was merged into the 5.2 branch.

Discussion
----------

[FrameworkBundler] Fix cache:clear with buildDir

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

Since #36515 there are 2 caches dir `cacheDir` and `buildDir`. For BC reason both points to the same folders, but when app don't use the same folder, many thing are broken:
This PR fixes several issues introduces by the above PR:
- some files are persisted in the wrong folder (`App_KernelDevDebugContainerDeprecations.log`, `App_KernelDevDebugContainer.xml`)
- LoggerDataCollector looks into cache_dir, while `Compiler.log` is written in build_dir and `Deprecations.log` were written in cache_dir before this PR
- the logic that mirror cacheDir into buildDir at the end of CacheClearCommand does not make sens when `cache_dir` and `build_dir` are not identical.
- Files generated in cacheDir are trashed at the end of CacheWarming (initial issue)

Commits
-------

ea68966e91 Fix cache:clear with buildDir
2020-12-15 10:04:49 +01:00
Thomas Calvet
cd11ef67dc [Uid] Fix tests namespace 2020-12-15 00:03:24 +01:00
Alexander M. Turek
6caf916083 Merge branch '5.1' into 5.2
* 5.1:
  [Notifier] Rework/streamline bridges (5.1)
  [Mailer] [Amazon] Ensure "ext-simplexml" is loaded if SesApiTransport is used
  Stop using deprecated trait
  [PhpUnitBridge] Lint files with PHP 5.5
2020-12-14 23:27:17 +01:00
Alexander M. Turek
ef461b6f8e minor #39455 [Notifier] Rework/streamline bridges (5.1) (OskarStark)
This PR was squashed before being merged into the 5.1 branch.

Discussion
----------

[Notifier] Rework/streamline bridges (5.1)

| 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 PR

* add missing tests
* pull up scheme check (check scheme first and then for required options)

Commits
-------

856e191687 [Notifier] Rework/streamline bridges (5.1)
2020-12-14 23:20:55 +01:00
Oskar Stark
856e191687 [Notifier] Rework/streamline bridges (5.1) 2020-12-14 23:20:24 +01:00
Jérémy Derussé
2fb9fa3dac
Merge branch '4.4' into 5.1
* 4.4:
  [Mailer] [Amazon] Ensure "ext-simplexml" is loaded if SesApiTransport is used
  Stop using deprecated trait
  [PhpUnitBridge] Lint files with PHP 5.5
2020-12-14 21:31:08 +01:00
Jérémy Derussé
e96b0e7d4d
minor #39463 [Mailer] [Amazon] Ensure "ext-simplexml" is loaded if SesApiTransport is used (OskarStark)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[Mailer] [Amazon] Ensure "ext-simplexml" is loaded if SesApiTransport is used

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

For reference:
150d8506e4/src/Symfony/Component/Mailer/Bridge/Amazon/Transport/SesApiTransport.php (L66-L69)

Commits
-------

a40d1375f9 [Mailer] [Amazon] Ensure "ext-simplexml" is loaded if SesApiTransport is used
2020-12-14 21:27:32 +01:00
Oskar Stark
a40d1375f9
[Mailer] [Amazon] Ensure "ext-simplexml" is loaded if SesApiTransport is used 2020-12-14 21:27:17 +01:00
Jérémy Derussé
ea68966e91
Fix cache:clear with buildDir 2020-12-14 18:14:39 +01:00
Nicolas Grekas
698dadccb1 minor #39497 [PhpUnitBridge] [phpunit] Stop using deprecated trait (jderusse)
This PR was merged into the 4.4 branch.

Discussion
----------

[PhpUnitBridge] [phpunit] Stop using deprecated trait

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

the `SetUpTearDownTrait` trait has been removed in #39487 this PR remove usage of it in branch 4.4

Commits
-------

55ed00cd3c Stop using deprecated trait
2020-12-14 17:15:46 +01:00
Jérémy Derussé
55ed00cd3c
Stop using deprecated trait 2020-12-14 16:50:10 +01:00
Nicolas Grekas
510623f890 minor #39421 [PhpUnitBridge] Lint files with PHP 5.5 (derrabus)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[PhpUnitBridge] Lint files with PHP 5.5

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

I'd like to make sure that PhpUnitBridge remains compatible with PHP 5.5.

cc @nicolas-grekas @fancyweb

Commits
-------

0bc15ff759 [PhpUnitBridge] Lint files with PHP 5.5
2020-12-14 16:00:54 +01:00
Alexander M. Turek
0bc15ff759 [PhpUnitBridge] Lint files with PHP 5.5 2020-12-14 16:00:48 +01:00
Jérémy Derussé
5ae2364c7e
Add missing symfony/deprecation-contracts requirement 2020-12-14 15:33:09 +01:00
Nicolas Grekas
b81a03d7a1 Merge branch '5.1' into 5.2
* 5.1:
  Fix EncoderInterface::encode() return type
  [Lock] Prevent store exception break combined store
  Remove check for unsupported PHP version
  [Notifier] Rename test method names
2020-12-14 11:56:50 +01:00
Nicolas Grekas
bae2782cdb Merge branch '4.4' into 5.1
* 4.4:
  Fix EncoderInterface::encode() return type
  [Lock] Prevent store exception break combined store
2020-12-14 11:55:48 +01:00
Nicolas Grekas
25f79ab808 minor #39444 [Notifier] [Discord] Fix exception message + test (OskarStark)
This PR was merged into the 5.2 branch.

Discussion
----------

[Notifier] [Discord] Fix exception message + test

| Q             | A
| ------------- | ---
| Branch?       | 5.2
| 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        | ---

Before this PR the message was wrong, "less than 2000" is not correct, it can have 2000 chars, but not more.

Commits
-------

01623391f6 [Notifier][Discord] Fix exception message + test
2020-12-14 11:49:49 +01:00
Nicolas Grekas
c052542e65 minor #39451 [Serializer] Fix EncoderInterface::encode() return type (jeroennoten)
This PR was merged into the 4.4 branch.

Discussion
----------

[Serializer] Fix EncoderInterface::encode() return type

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

I might have missed something (in that case, please let me know), but I believe that `EncoderInterface::encode()` will and should always return a `string`. This makes more sense because `DecoderInterface::decode()` only accepts a string as input.

Commits
-------

ae6f054cc1 Fix EncoderInterface::encode() return type
2020-12-14 11:44:27 +01:00
Jeroen Noten
ae6f054cc1 Fix EncoderInterface::encode() return type 2020-12-14 11:44:14 +01:00
Nicolas Grekas
43ab20e4f2 bug #39476 [Lock] Prevent store exception break combined store (dzubchik)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[Lock] Prevent store exception break combined store

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

Handle exception to preserve expected behavior - one or multiple stores could be unreachable in a moment and combined store will handle this according to strategy.

Commits
-------

0daff35bae [Lock] Prevent store exception break combined store
2020-12-14 11:21:44 +01:00
Dmytro Dzubenko
0daff35bae [Lock] Prevent store exception break combined store 2020-12-14 11:21:37 +01:00
Nicolas Grekas
936bab4b3b bug #39478 [FrameworkBundle] Fix missing kernel.build_dir on cache clear (chalasr)
This PR was merged into the 5.2 branch.

Discussion
----------

[FrameworkBundle] Fix missing kernel.build_dir on cache clear

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

Fixes post-upgrade cache:clear on 5.2.

Commits
-------

42abc059a6 Fix missing kernel.build_dir on cache clear
2020-12-14 11:19:29 +01:00
Pierre du Plessis
14c3614ac4 Remove check for unsupported PHP version 2020-12-14 12:10:03 +02:00
Oskar Stark
45b3a3062c [Notifier] Rename test method names
To stay consistent
2020-12-14 10:19:36 +01:00
Fabien Potencier
e05b8ef230 Merge branch '5.1' into 5.2
* 5.1:
  Fix tests
  Fix applyVersion tests
  [Notifier][Free Mobile] Fix wrong scheme in mapping
2020-12-14 08:03:22 +01:00
Fabien Potencier
9d73e7caf0 Merge branch '4.4' into 5.1
* 4.4:
  Fix tests
2020-12-14 08:03:02 +01:00
Jérémy Derussé
d651fb539c
Fix tests 2020-12-13 23:21:11 +01:00
Jérémy Derussé
fe40ddb013
Fix applyVersion tests 2020-12-13 19:27:25 +01:00
Robin Chalas
42abc059a6 Fix missing kernel.build_dir on cache clear 2020-12-12 23:17:42 +01:00
Jérémy Derussé
07402f4af3
Dont allow unserializing classes with a destructor - 5.1 2020-12-12 17:30:27 +01:00
Fabien Potencier
7c7366a82a bug #39456 [Notifier] [Free Mobile] Fix wrong scheme in mapping (OskarStark)
This PR was merged into the 5.1 branch.

Discussion
----------

[Notifier] [Free Mobile] Fix wrong scheme in mapping

| 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        | ---

The scheme is `freemobile`, not `free-mobile`

For reference:
134af39538/src/Symfony/Component/Notifier/Bridge/FreeMobile/FreeMobileTransportFactory.php (L41-L43)

Commits
-------

6eae1951ee [Notifier][Free Mobile] Fix wrong scheme in mapping
2020-12-12 09:30:23 +01:00
Alexander M. Turek
07aa1ed143 Merge branch '5.1' into 5.2
* 5.1:
  Use more explicit variable name
  Fix wrong comment about SES region
  [Mailer] [Sendgrid] Use $scheme variable to stay consistent
  [Mailer] [Amazon] Fix @param annotation
  [Mailer] Rename testsuites
  Remove void return type from test methods
  Remove void return type from test methods
  [Notifier] Remove void return type from test methods
2020-12-12 00:40:07 +01:00
Alexander M. Turek
7d846d3e82 Merge branch '4.4' into 5.1
* 4.4:
  Use more explicit variable name
  Fix wrong comment about SES region
  [Mailer] [Sendgrid] Use $scheme variable to stay consistent
  [Mailer] [Amazon] Fix @param annotation
  [Mailer] Rename testsuites
  Remove void return type from test methods
2020-12-12 00:11:02 +01:00
Jérémy Derussé
cb05fab4c7
bug #39442 Fix enabled key for ratelimiter config (pierredup)
This PR was squashed before being merged into the 5.2 branch.

Discussion
----------

Fix enabled key for ratelimiter config

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

The `enabled` key doesn't always exist in the config when using the ratelimiter component, which causes an undefined index error

Commits
-------

d48e2c2431 Fix enabled key for ratelimiter config
2020-12-11 21:33:35 +01:00
Pierre du Plessis
d48e2c2431
Fix enabled key for ratelimiter config 2020-12-11 21:33:24 +01:00
Vincent Langlet
337174fa4b
Use more explicit variable name 2020-12-11 17:32:02 +01:00
Nicolas Grekas
8f6c52a19a minor #39467 Fix wrong comment about SES region (jderusse)
This PR was merged into the 4.4 branch.

Discussion
----------

Fix wrong comment about SES region

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

This list is wrong (or maybe no more exact). And maintain such list does not make sens in code.

https://docs.aws.amazon.com/general/latest/gr/ses.html

Commits
-------

759774750e Fix wrong comment about SES region
2020-12-11 16:21:07 +01:00
Nicolas Grekas
8d6794f6b6 minor #39459 Remove void return type from test methods (OskarStark)
This PR was merged into the 4.4 branch.

Discussion
----------

Remove void return type from test methods

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

cc @nicolas-grekas

Commits
-------

94f823fd4a Remove void return type from test methods
2020-12-11 16:19:13 +01:00
Nicolas Grekas
38b2968549 minor #39460 Remove void return type from test methods (OskarStark)
This PR was merged into the 5.1 branch.

Discussion
----------

Remove void return type from test methods

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

This PR follows #39459

cc @nicolas-grekas

Commits
-------

6e6c3ba1a0 Remove void return type from test methods
2020-12-11 16:16:17 +01:00
Jérémy Derussé
759774750e
Fix wrong comment about SES region 2020-12-11 15:43:01 +01:00
Maxime Steinhausser
278688deeb minor #39465 [Mailer] [Sendgrid] Use $scheme variable to stay consistent (OskarStark)
This PR was merged into the 4.4 branch.

Discussion
----------

[Mailer] [Sendgrid] Use $scheme variable to stay consistent

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

Its used like this in all other mailer bridges

Commits
-------

1a40d7c75a [Mailer] [Sendgrid] Use $scheme variable to stay consistent
2020-12-11 15:13:33 +01:00
Maxime Steinhausser
7f49e15f40 minor #39464 [Mailer] [Amazon] Fix @param annotation (OskarStark)
This PR was merged into the 4.4 branch.

Discussion
----------

[Mailer] [Amazon] Fix @param annotation

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

Commits
-------

514881c708 [Mailer] [Amazon] Fix @param annotation
2020-12-11 15:11:17 +01:00
Oskar Stark
6eae1951ee [Notifier][Free Mobile] Fix wrong scheme in mapping 2020-12-11 14:41:25 +01:00
Oskar Stark
1a40d7c75a [Mailer] [Sendgrid] Use $scheme variable to stay consistent 2020-12-11 14:18:32 +01:00
Oskar Stark
514881c708 [Mailer] [Amazon] Fix @param annotation 2020-12-11 14:09:19 +01:00
Oskar Stark
9ebfa6034a [Mailer] Rename testsuites
to stay consistent with other bridges
2020-12-11 13:58:29 +01:00
Oskar Stark
6e6c3ba1a0 Remove void return type from test methods 2020-12-11 13:47:35 +01:00
Oskar Stark
94f823fd4a Remove void return type from test methods 2020-12-11 13:39:31 +01:00
Oskar Stark
616df0c6a3 [Notifier] Remove void return type from test methods 2020-12-11 11:27:22 +01:00
Nicolas Grekas
26e1e6b18e minor #39450 [Notifier] [Telegram] Remove void return type from test methods (OskarStark)
This PR was merged into the 5.2 branch.

Discussion
----------

[Notifier] [Telegram] Remove void return type from test methods

| Q             | A
| ------------- | ---
| Branch?       | 5.2
| 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        | ---

cc @nicolas-grekas

Commits
-------

e48fcdcd34 [Notifier][Telegram] Remove void return type from test methods
2020-12-11 11:26:47 +01:00
Nicolas Grekas
bfc89cdbc0 minor #39449 [Notifier] [Esendex] Remove void return type from test methods (OskarStark)
This PR was merged into the 5.2 branch.

Discussion
----------

[Notifier] [Esendex] Remove void return type from test methods

| Q             | A
| ------------- | ---
| Branch?       | 5.2
| 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        | ---

cc @nicolas-grekas

Commits
-------

6c185d19ad [Notifier][Esendex] Remove void return type from test methods
2020-12-11 11:25:06 +01:00
Nicolas Grekas
cd0e3cfbb7 minor #39446 [Notifier] Move ext-json below php requirement to stay consistent (OskarStark)
This PR was merged into the 5.2 branch.

Discussion
----------

[Notifier] Move ext-json below php requirement to stay consistent

| Q             | A
| ------------- | ---
| Branch?       | 5.2
| 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
-------

a3b84c9469 [Notifier] Move ext-json below php requirement to stay consistent
2020-12-11 11:24:08 +01:00
Nicolas Grekas
b2dd4d668b minor #39448 [Notifier] [Sendinblue] Remove void return type from test methods (OskarStark)
This PR was merged into the 5.2 branch.

Discussion
----------

[Notifier] [Sendinblue] Remove void return type from test methods

| Q             | A
| ------------- | ---
| Branch?       | 5.2
| 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        | ---

cc @nicolas-grekas

Commits
-------

15f523e6ad [Notifier][Sendinblue] Remove void return type from test methods
2020-12-11 11:23:03 +01:00
Nicolas Grekas
8dc71e3bca minor #39447 [Notifier] [GoogleChat] Remove void return type from test methods (OskarStark)
This PR was merged into the 5.2 branch.

Discussion
----------

[Notifier] [GoogleChat] Remove void return type from test methods

| Q             | A
| ------------- | ---
| Branch?       | 5.2
| 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        | ---

cc @nicolas-grekas

Commits
-------

de2bf6d98a [Notifier][GoogleChat] Remove void return type from test methods
2020-12-11 11:22:15 +01:00
Nicolas Grekas
5af70a1008 Cleanup composer.json files 2020-12-11 11:20:06 +01:00
Oskar Stark
e48fcdcd34 [Notifier][Telegram] Remove void return type from test methods 2020-12-11 11:18:47 +01:00
Oskar Stark
6c185d19ad [Notifier][Esendex] Remove void return type from test methods 2020-12-11 11:17:01 +01:00
Oskar Stark
15f523e6ad [Notifier][Sendinblue] Remove void return type from test methods 2020-12-11 11:15:34 +01:00
Oskar Stark
de2bf6d98a [Notifier][GoogleChat] Remove void return type from test methods 2020-12-11 11:13:49 +01:00
Oskar Stark
a3b84c9469 [Notifier] Move ext-json below php requirement to stay consistent 2020-12-11 11:06:41 +01:00
Oskar Stark
01623391f6 [Notifier][Discord] Fix exception message + test 2020-12-11 10:11:18 +01:00
Oskar Stark
32014199d0 [Notifier] Add PHP 8 support for bridges 2020-12-11 10:00:54 +01:00
Nicolas Grekas
613ac0c0e9 Merge branch '5.1' into 5.2
* 5.1:
  [PropertyInfo][Serializer] Fixed extracting ignored properties
  [travis] fix checking if the current branch has same major as the next release
2020-12-10 23:56:34 +01:00
javer
594ce465ce [PropertyInfo][Serializer] Fixed extracting ignored properties 2020-12-10 23:52:33 +01:00
Jérémy Derussé
25a8a0a81b
Fix CS in Changelogs in 5.2 2020-12-10 21:03:43 +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
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
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
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
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
7acca31e66 [Cache] fix setting "read_timeout" when using Redis 2020-12-10 17:45:19 +01:00
Jérémy Derussé
a46cff26c6
Fix CS in changelogs 2020-12-10 17:34:26 +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
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
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
Oskar Stark
483ea426eb [Notifier][Slack] Remove :void from test methods 2020-12-10 08:36:59 +01:00
Fabien Potencier
0fa187d0c6 Fix CS 2020-12-10 08:10:12 +01:00
Oskar Stark
21c47680f9 [Notifier][Discord] Make webhookId argument required 2020-12-10 08:09:23 +01:00
Fabien Potencier
2dd4561d3f bug #39203 [DI] Fix not working if only "default_index_method" used (malteschlueter)
This PR was merged into the 4.4 branch.

Discussion
----------

[DI] Fix not working if only "default_index_method" used

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

The default index method wasn't used if the "index_by" attribute is missing. The documentation is showing an example, see https://symfony.com/doc/current/service_container/tags.html#tagged-services-with-index.

This problem also appears in symfony 5.

I created two example projects, the first in the current behaviour and the second with my bugfix branch.

Current 4.4: https://github.com/malteschlueter/symfony-reproducers/blob/bugfix/dependency-injection-default-index-method-not-working--not-fixed/tests/HandlerCollectionTest.php

This bugfix branch: https://github.com/malteschlueter/symfony-reproducers/blob/bugfix/dependency-injection-default-index-method-not-working--with-fix/tests/HandlerCollectionTest.php

Commits
-------

eb25d5c275 [DI] The default index method wasn't used if the "index_by" attribute is missing
2020-12-10 08:05:48 +01:00
Fabien Potencier
25dc5ee6c4 bug #39409 [Notifier] [Twilio] Add tests (OskarStark)
This PR was merged into the 5.1 branch.

Discussion
----------

[Notifier] [Twilio] 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
-------

568523bf7a [Notifier][Twilio] Add tests
2020-12-10 07:51:26 +01:00
Fabien Potencier
e8e01d56d2 minor #39403 [Notifier] [Free Mobile] Add test (OskarStark)
This PR was merged into the 5.1 branch.

Discussion
----------

[Notifier] [Free Mobile] Add test

| 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
-------

f7d5c48313 [Notifier][Free Mobile] Tests
2020-12-10 07:48:27 +01:00
Alexander M. Turek
9052b2b1ee bug #39401 [DoctrineBridge] no-op RegisterUidTypePass if DBAL types aren't loaded (craue)
This PR was squashed before being merged into the 5.2 branch.

Discussion
----------

[DoctrineBridge] no-op RegisterUidTypePass if DBAL types aren't loaded

| Q             | A
| ------------- | ---
| Branch?       | 5.2
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #39400
| License       | MIT

Commits
-------

765ae9e16c [DoctrineBridge] no-op RegisterUidTypePass if DBAL types aren't loaded
2020-12-10 00:03:16 +01:00
Christian Raue
765ae9e16c [DoctrineBridge] no-op RegisterUidTypePass if DBAL types aren't loaded 2020-12-10 00:03:08 +01:00
Alexander M. Turek
65225b9a1b minor #39414 [Notifier] Remove @internal annotation from notifier transports (OskarStark)
This PR was merged into the 5.2 branch.

Discussion
----------

[Notifier] Remove @internal annotation from notifier transports

| Q             | A
| ------------- | ---
| Branch?       | 5.2
| 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        | ---

Same like https://github.com/symfony/symfony/pull/39380 but for `5.2`

Commits
-------

3d8c55e75c [Notifier] Remove @internal annotation from notifier transports
2020-12-09 21:31:50 +01:00
Alexander M. Turek
8a003527c7 minor #39380 [Notifier] Remove @internal annotation from notifier transports (OskarStark)
This PR was merged into the 5.1 branch.

Discussion
----------

[Notifier] Remove @internal annotation from notifier transports

| 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        | ---

All other transports does not have the `@internal` annotation, so I think we can safely remove it.

I consider this a bugfix, as this does not break BC.

cc @fabpot

Commits
-------

d75f50d3a7 [Notifier] Remove @internal annotation from notifier transports
2020-12-09 21:30:32 +01:00
Nicolas Grekas
20cd8c62ce Merge branch '5.1' into 5.2
* 5.1:
  [PhpUnitBridge] CS fix
  [Notifier] Only use sprintf instead of sprintf and string concat
  [PhpUnitBridge] Fix PHP 5.5 compatibility
  Add missing param annotation abouts $fileLinkFormat
  [Form] Fixed StringUtil::trim() to trim ZERO WIDTH SPACE (U+200B) and SOFT HYPHEN (U+00AD)
  23412 Stop treating multiline resources as globs
2020-12-09 19:54:12 +01:00
Nicolas Grekas
58f3302e42 Merge branch '4.4' into 5.1
* 4.4:
  [PhpUnitBridge] CS fix
  [PhpUnitBridge] Fix PHP 5.5 compatibility
  Add missing param annotation abouts $fileLinkFormat
  [Form] Fixed StringUtil::trim() to trim ZERO WIDTH SPACE (U+200B) and SOFT HYPHEN (U+00AD)
  23412 Stop treating multiline resources as globs
2020-12-09 19:49:55 +01:00
Nicolas Grekas
52a0233905 [PhpUnitBridge] CS fix 2020-12-09 19:44:45 +01:00
Nicolas Grekas
35bb7bd20a minor #39411 [Notifier] Remove trailing argument in tests (OskarStark)
This PR was merged into the 5.2 branch.

Discussion
----------

[Notifier] Remove trailing argument in tests

| Q             | A
| ------------- | ---
| Branch?       | 5.2
| 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
-------

d3fb308bd1 [Notifier] Remove trailing argument in tests
2020-12-09 19:31:30 +01:00
Oskar Stark
ca65c54018 [Notifier] Only use sprintf instead of sprintf and string concat 2020-12-09 19:30:29 +01:00
Thomas Calvet
fe7abcd1e9 [PhpUnitBridge] Fix PHP 5.5 compatibility 2020-12-09 17:54:32 +01:00
Jérémy Derussé
a41e7f0771
Fix exception thrown by Form when converting UUID 2020-12-09 17:04:36 +01:00
Oskar Stark
d75f50d3a7 [Notifier] Remove @internal annotation from notifier transports 2020-12-09 15:30:49 +01:00
Oskar Stark
3d8c55e75c [Notifier] Remove @internal annotation from notifier transports 2020-12-09 15:29:32 +01:00
Oskar Stark
d3fb308bd1 [Notifier] Remove trailing argument in tests 2020-12-09 15:05:59 +01:00
Oskar Stark
568523bf7a [Notifier][Twilio] Add tests 2020-12-09 14:38:16 +01:00
Maxime Steinhausser
bdcd745232 [Serializer] Make fabbot happy with 5.2 tests CS 2020-12-09 14:07:31 +01:00
Oskar Stark
f7d5c48313 [Notifier][Free Mobile] Tests 2020-12-09 13:53:43 +01:00
Nicolas Grekas
32a56a6389 Add missing param annotation abouts $fileLinkFormat 2020-12-09 12:15:38 +01:00
Nicolas Grekas
55d2723c84 bug #39142 [Config] Stop treating multiline resources as globs (michaelKaefer)
This PR was merged into the 4.4 branch.

Discussion
----------

[Config] Stop treating multiline resources as globs

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

Would fix the linked issue.

In https://github.com/symfony/symfony/issues/22938 it was suggested to enhance the glob-detection logic by detecting newlines.

Cons:
- it only solves an edge case
- it is not possible to use a multiline glob (like `bar\nbaz*.txt`) as a resource anymore - maybe in another edge case this is needed

Commits
-------

1e3baad386 23412 Stop treating multiline resources as globs
2020-12-09 09:58:17 +01:00
Alexander M. Turek
558ce1b4d3 bug #39341 [Form] Fixed StringUtil::trim() to trim ZERO WIDTH SPACE (U+200B) and SOFT HYPHEN (U+00AD) (pmishev)
This PR was merged into the 4.4 branch.

Discussion
----------

[Form] Fixed StringUtil::trim() to trim ZERO WIDTH SPACE (U+200B) and SOFT HYPHEN (U+00AD)

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | Fix #39230 <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License       | MIT
<!--
Replace this notice by a short README for your feature/bugfix. This will help people
understand your PR and can be used as a start for the documentation.

Additionally (see https://symfony.com/releases):
 - Always add tests and ensure they pass.
 - Never break backward compatibility (see https://symfony.com/bc).
 - Bug fixes must be submitted against the lowest maintained branch where they apply
   (lowest branches are regularly merged to upper ones so they get the fixes too.)
 - Features and deprecations must be submitted against branch 5.x.
-->

Commits
-------

258bea7fd5 [Form] Fixed StringUtil::trim() to trim ZERO WIDTH SPACE (U+200B) and SOFT HYPHEN (U+00AD)
2020-12-08 18:57:51 +01:00
Nicolas Grekas
4df63ab450 bug #39268 [HttpClient] Use decoration instead of class replacement for mock factory (GaryPEGEOT)
This PR was squashed before being merged into the 5.2 branch.

Discussion
----------

[HttpClient] Use decoration instead of class replacement for mock factory

| Q             | A
| ------------- | ---
| Branch?       | 5.2
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #39266
| License       | MIT

Commits
-------

9a9823c99a [HttpClient] Use decoration instead of class replacement for mock factory
2020-12-08 18:14:40 +01:00
Gary PEGEOT
9a9823c99a [HttpClient] Use decoration instead of class replacement for mock factory 2020-12-08 18:14:23 +01:00
Nicolas Grekas
2d73d4a880 Merge branch '5.1' into 5.2
* 5.1:
  [PhpUnitBridge] Fix CS for PHP 5.5
2020-12-08 18:06:25 +01:00
Nicolas Grekas
ec09d68df1 Merge branch '4.4' into 5.1
* 4.4:
  [PhpUnitBridge] Fix CS for PHP 5.5
2020-12-08 18:06:17 +01:00
Nicolas Grekas
236400c03a [PhpUnitBridge] Fix CS for PHP 5.5 2020-12-08 18:05:36 +01:00
Nicolas Grekas
555697df61 Merge branch '5.1' into 5.2
* 5.1:
  Update .php_cs.dist
  Apply "visibility_required" CS rule to constants
2020-12-08 18:03:37 +01:00
Nicolas Grekas
a8b992f8a2 Merge branch '4.4' into 5.1
* 4.4:
  Update .php_cs.dist
  Apply "visibility_required" CS rule to constants
2020-12-08 18:02:38 +01:00
Nicolas Grekas
ff22d30cb0 Apply "visibility_required" CS rule to constants
php-cs-fixer fix --rules='{"visibility_required": ["property", "method", "const"]}'
2020-12-08 17:59:59 +01:00
Nicolas Grekas
f37f56c1bb Merge branch '5.1' into 5.2
* 5.1:
  minor cs fix
  [Config][TwigBundle] Fixed syntax error in config
  [DI] Fix Xdebug 3.0 detection
  Use php8 stable
  [Notifier] Streamline changelogs of notifier bridges
  [Cache] fix checking for redis_sentinel support
  [Messenger] Fixed wording in php doc
  [Intl] Update the ICU data to 68.1
  [FrameworkBundle] acces public-deprecated services via the private container to remove false-positive deprecations
  Remove unused @throws tags and handling of never thrown exceptions
  [PhpUnitBridge] Fix disabling DeprecationErrorHandler from phpunit configuration file
2020-12-08 17:43:38 +01:00
Nicolas Grekas
a2f073472f Merge branch '4.4' into 5.1
* 4.4:
  minor cs fix
  [Config][TwigBundle] Fixed syntax error in config
  [DI] Fix Xdebug 3.0 detection
  Use php8 stable
  [Cache] fix checking for redis_sentinel support
  [Intl] Update the ICU data to 68.1
  Remove unused @throws tags and handling of never thrown exceptions
  [PhpUnitBridge] Fix disabling DeprecationErrorHandler from phpunit configuration file
2020-12-08 17:43:25 +01:00
Malte Schlüter
eb25d5c275 [DI] The default index method wasn't used if the "index_by" attribute is missing 2020-12-08 17:11:59 +01:00
Nicolas Grekas
a7fcb0b84e minor cs fix 2020-12-08 15:13:31 +01:00
Alexander M. Turek
8f331f2df2 bug #39334 [Config][TwigBundle] Fixed syntax error in config (Nyholm)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[Config][TwigBundle] Fixed syntax error in config

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

Sorry for such small PR. I found this when I was parsing the yaml after running `bin/console config:dump-reference TwigBundle`

#SymfonyHackday

Commits
-------

04d369d336 [Config][TwigBundle] Fixed syntax error in config
2020-12-08 15:10:36 +01:00
Nyholm
04d369d336 [Config][TwigBundle] Fixed syntax error in config 2020-12-08 15:10:25 +01:00
Nicolas Grekas
891e2afb64 bug #39196 [DI] Fix Xdebug 3.0 detection (vertexvaar)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[DI] Fix Xdebug 3.0 detection

| Q             | A
| ------------- | ---
| Branch?       | 4.4 (for bug fixes)
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #39195
| License       | MIT
| Doc PR        | n/a

Xdebug 3.0 removed the function `xdebug_is_enabled()`. To detect if Xdebug 3.0 is installed (it doesn't even need to be enabled to reproduce the bug) i added `function_exists('xdebug_info')`. AFAIS `xdebug_info()` is available in Xdebug >= 3.0 only.

Commits
-------

38f8edddb1 [DI] Fix Xdebug 3.0 detection
2020-12-08 15:03:26 +01:00
Oliver Eglseder
38f8edddb1 [DI] Fix Xdebug 3.0 detection 2020-12-08 15:03:00 +01:00
Oskar Stark
95bcab29d1 [Notifier] Streamline changelogs of notifier bridges 2020-12-08 14:24:03 +01:00
Wouter de Jong
9a7034efe3 bug #39375 [SecurityBundle] fix LDAP-based HTTP Basic Auth entry point registration (xabbuh)
This PR was merged into the 5.2 branch.

Discussion
----------

[SecurityBundle] fix LDAP-based HTTP Basic Auth entry point registration

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

Commits
-------

67d6624c2f fix LDAP-based HTTP Basic Auth entry point registration
2020-12-08 13:15:04 +01:00
Nicolas Grekas
cba70a6547 bug #39226 [PhpUnitBridge] Fix disabling DeprecationErrorHandler from PHPUnit configuration file (fancyweb)
This PR was merged into the 4.4 branch.

Discussion
----------

[PhpUnitBridge] Fix disabling DeprecationErrorHandler from PHPUnit configuration file

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | https://github.com/symfony/symfony/issues/38239
| License       | MIT
| Doc PR        | -

The linked issue description is right, the bridge's bootstrap is hit before the env variables from the phpunit.xml file are read and set. So the easiest solution is to read it ourselves in the root script (like we already do for some of them).

Commits
-------

41158b8878 [PhpUnitBridge] Fix disabling DeprecationErrorHandler from phpunit configuration file
2020-12-08 12:21:32 +01:00
Nicolas Grekas
d4fa223c5b minor #39379 [FrameworkBundle] fix lowest required HttpFoundation component (xabbuh)
This PR was merged into the 5.2 branch.

Discussion
----------

[FrameworkBundle] fix lowest required HttpFoundation component

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

Commits
-------

cdb1c2e6f9 fix lowest required HttpFoundation component
2020-12-08 12:19:55 +01:00
Nicolas Grekas
1ea5a8c3ce minor #39246 [HttpFoundation] Throws cleanup (kick-the-bucket)
This PR was merged into the 4.4 branch.

Discussion
----------

[HttpFoundation] Throws cleanup

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

The actual throw statements have been removed years ago, but the annotations stayed.
Such annotations fool static analysis tools to trigger false positives for unhandled exceptions.

Commits
-------

8b9b62048c Remove unused @throws tags and handling of never thrown exceptions
2020-12-08 12:12:36 +01:00
Nicolas Grekas
5f08c617cd bug #39298 [Cache] Fixed incorrect usage of UNLINK with PHPRedis with Redis < 4.0 (wickex)
This PR was merged into the 5.2 branch.

Discussion
----------

[Cache] Fixed incorrect usage of UNLINK with PHPRedis with Redis < 4.0

| Q             | A
| ------------- | ---
| Branch?       | 5.2
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #39280
| License       | MIT

Currently, deleting cache keys is broken for users using PhpRedis with Redis-server < 4.0.0. The current implementation expects PhpRedis to throw an exception if the 'unlink'-function is used but unavailable, after which it's supposed to switch to using the 'del'-function. Using the 'unlink'-function on lower Redis-server versions seems to not throw an exception, but instead it appears to silently fail.

This pull request changes this behavior and checks the Redis-server version instead. If the version is 4.0 or higher, it uses the unlink function. If not, it uses the del-function.

Also see https://redis.io/commands/unlink > "Available since 4.0.0".

(Footnote: this is one of my first times contributing to an open-source project and my first time contributing to Symfony. I've tried following the guidelines, but please let me know if I missed anything. I'm unsure how I would go about unit testing this specific bugfix due to it being dependent on the Redis version, so I omitted it. Please let me know if a unit test is indeed required for this and if so, let me know if you have any suggestions on how to go about that.)

Commits
-------

9363f3b973 [Cache] Fixed incorrect usage of UNLINK with PHPRedis with Redis < 4.0
2020-12-08 12:05:08 +01:00
Wickex
9363f3b973 [Cache] Fixed incorrect usage of UNLINK with PHPRedis with Redis < 4.0 2020-12-08 12:04:54 +01:00
Christian Flothmann
cdb1c2e6f9 fix lowest required HttpFoundation component 2020-12-08 11:49:51 +01:00
Nicolas Grekas
bd44eb69a2 [Cache] fix checking for redis_sentinel support 2020-12-08 11:44:58 +01:00
Nicolas Grekas
ed46cb5b25 bug #39361 [FrameworkBundle] acces public-deprecated services via the private container to remove false-positive deprecations (nicolas-grekas)
This PR was merged into the 5.1 branch.

Discussion
----------

[FrameworkBundle] acces public-deprecated services via the private container to remove false-positive deprecations

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

Something we missed in #36470 apparently.

Commits
-------

d502ba9e5d [FrameworkBundle] acces public-deprecated services via the private container to remove false-positive deprecations
2020-12-08 11:40:38 +01:00
Grégoire Pineau
e3354d974c [Messenger] Fixed wording in php doc 2020-12-08 10:57:28 +01:00
Christian Flothmann
67d6624c2f fix LDAP-based HTTP Basic Auth entry point registration 2020-12-08 10:17:19 +01:00
Jakub Zalas
f3eda44058
[Intl] Update the ICU data to 68.1 2020-12-08 08:18:40 +00:00
Fabien Potencier
fd34c9c22f bug #39358 [HttpFoundation] fix parsing some special chars with HeaderUtils::parseQuery() (nicolas-grekas)
This PR was merged into the 5.2 branch.

Discussion
----------

[HttpFoundation] fix parsing some special chars with HeaderUtils::parseQuery()

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

Same as #39357 for 5.2

Commits
-------

8682bdc521 [HttpFoundation] fix parsing some special chars with HeaderUtils::parseQuery()
2020-12-08 08:08:22 +01:00
Fabien Potencier
f4e1556199 Merge branch '5.1' into 5.2
* 5.1:
  [Serializer] Fixed serialize and denormalize return types
  Run intl-data tests on resources change
  [FrameworkBundle] fix preserving some special chars in the query string when redirecting
2020-12-08 08:07:34 +01:00
Fabien Potencier
dde0f3c999 Merge branch '4.4' into 5.1
* 4.4:
  Run intl-data tests on resources change
  [FrameworkBundle] fix preserving some special chars in the query string when redirecting
2020-12-08 08:06:06 +01:00
Fabien Potencier
a630685da1 bug #39357 [FrameworkBundle] fix preserving some special chars in the query string (nicolas-grekas)
This PR was merged into the 4.4 branch.

Discussion
----------

[FrameworkBundle] fix preserving some special chars in the query string

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

Commits
-------

6ecae5719c [FrameworkBundle] fix preserving some special chars in the query string when redirecting
2020-12-08 08:04:52 +01:00
Fabien Potencier
7652685ec1 minor #39337 [Serializer] Fixed serialize and denormalize return types (vudaltsov)
This PR was squashed before being merged into the 5.1 branch.

Discussion
----------

[Serializer] Fixed serialize and denormalize return types

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

Since #35235 `SerializerInterface::deserialize()` and `DenormalizerInterface::denormalize()` return types are no longer correct.

I suggest using `mixed` to allow custom denormalizers to denormalize to any type. For instance, I might add `ClosureDenormalizer` or `NullDenormalizer` or `ResourceDenormalizer`, technically there are no limits.

Commits
-------

67277e55f0 [Serializer] Fixed serialize and denormalize return types
2020-12-08 07:28:58 +01:00
vudaltsov
67277e55f0 [Serializer] Fixed serialize and denormalize return types 2020-12-08 07:28:50 +01:00
Fabien Potencier
619d54389e bug #39310 [Notifier] Add exception for deprecated slack dsn (malteschlueter)
This PR was merged into the 5.2 branch.

Discussion
----------

[Notifier] Add exception for deprecated slack dsn

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

The DSN for the Slack integration changed again from 5.1 to 5.2. There was the idea to output an exception for that.

Commits
-------

6b56b4c6f9 [Notifier] Add exception for deprecated slack dsn
2020-12-08 07:26:38 +01:00
Alexander M. Turek
cd3993ee88 Merge branch '5.1' into 5.2
* 5.1:
  [HttpFoundation] Removed obsolete test.
  [HttpFoundation] Fix TypeError: Argument 1 passed to JsonResponse::setJson() must be of the type string, object given
  [Security][Validator] Add missing Portuguese translations
  Add Croatian (hr) translations
2020-12-07 23:32:31 +01:00
Alexander M. Turek
2807a7950d [HttpFoundation] Removed obsolete test. 2020-12-07 23:31:01 +01:00
Alexander M. Turek
f8b9ee9333 Merge branch '4.4' into 5.1
* 4.4:
  [HttpFoundation] Fix TypeError: Argument 1 passed to JsonResponse::setJson() must be of the type string, object given
  [Security][Validator] Add missing Portuguese translations
  Add Croatian (hr) translations
2020-12-07 23:18:25 +01:00
Alexander M. Turek
306914a96d bug #39271 [HttpFoundation] Fix TypeError: Argument 1 passed to JsonResponse::setJson() must be of the type string, object given (sidz)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[HttpFoundation] Fix TypeError: Argument 1 passed to JsonResponse::setJson() must be of the type string, object given

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

This PR fixes the type error when user set `null` as data in the `new JsonResponse(null, 200, [], true)` and true in the fourth argument to mark that value is json.
```
TypeError: Argument 1 passed to Symfony\Component\HttpFoundation\JsonResponse::setJson() must be of the type string, object given, called in /home/projects/symfony/src/Symfony/Component/HttpFoundation/JsonResponse.php on line 52
```

Commits
-------

7fcba9611d [HttpFoundation] Fix TypeError: Argument 1 passed to JsonResponse::setJson() must be of the type string, object given
2020-12-07 23:02:04 +01:00
Oleg Zhulnev
7fcba9611d [HttpFoundation] Fix TypeError: Argument 1 passed to JsonResponse::setJson() must be of the type string, object given 2020-12-07 23:01:57 +01:00
Alexander M. Turek
6df4b04165 minor #39366 Fix: Indentation (OskarStark)
This PR was merged into the 5.2 branch.

Discussion
----------

Fix: Indentation

| Q             | A
| ------------- | ---
| Branch?       | 5.2
| 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
-------

37fddad0f2 Fix: Indentation
2020-12-07 17:06:35 +01:00
Malte Schlüter
6b56b4c6f9 [Notifier] Add exception for deprecated slack dsn 2020-12-07 16:39:20 +01:00
Oskar Stark
37fddad0f2 Fix: Indentation 2020-12-07 16:02:25 +01:00
Oskar Stark
c0dda8bd03 Fix: Remove unused sprintf() parameters 2020-12-07 16:01:25 +01:00
Nicolas Grekas
d502ba9e5d [FrameworkBundle] acces public-deprecated services via the private container to remove false-positive deprecations 2020-12-07 14:48:27 +01:00
Nicolas Grekas
6ecae5719c [FrameworkBundle] fix preserving some special chars in the query string when redirecting 2020-12-07 13:08:17 +01:00
Nicolas Grekas
8682bdc521 [HttpFoundation] fix parsing some special chars with HeaderUtils::parseQuery() 2020-12-07 13:06:47 +01:00
Alexander M. Turek
03a072e07c minor #39345 [Security][Validator] Add missing Portuguese translations (NicolasJourdan)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[Security][Validator] Add missing Portuguese translations

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

Commits
-------

ad4f6f2093 [Security][Validator] Add missing Portuguese translations
2020-12-07 10:01:52 +01:00
Nicolas Jourdan
ad4f6f2093 [Security][Validator] Add missing Portuguese translations 2020-12-07 10:01:46 +01:00
Alexander M. Turek
4404e6a3e9 minor #39332 Add Croatian (hr) translations (jseparovic1)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

Add Croatian (hr) translations

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

#SymfonyHackday

Commits
-------

f2dbbd2e58 Add Croatian (hr) translations
2020-12-07 10:00:22 +01:00
Jurica Šeparović
f2dbbd2e58 Add Croatian (hr) translations 2020-12-07 10:00:14 +01:00
Jérémy Derussé
36f5ff1550
Add missing entries in gitattributes 2020-12-05 23:16:05 +01:00
pmishev
258bea7fd5 [Form] Fixed StringUtil::trim() to trim ZERO WIDTH SPACE (U+200B) and SOFT HYPHEN (U+00AD) 2020-12-05 20:51:30 +00:00
Alexander M. Turek
cb66c523fe [Notifier] Fix tests with PHPUnit 9.5. 2020-12-05 19:56:23 +01:00
Alexander M. Turek
dbc1db21cd Merge branch '5.1' into 5.2
* 5.1:
  Fix merge.
  Fix CS
  [Messenger] Test generated SQL
  [Config] YamlReferenceDumper: No default value required for VariableNode with array example
  Remove PHPUnit configuration files from components without tests.
  [DependencyInjection] Fix container linter for union types.
2020-12-05 19:32:58 +01:00
Alexander M. Turek
7c31fa0537 Fix merge. 2020-12-05 19:20:45 +01:00
Alexander M. Turek
f13821e881 Merge branch '4.4' into 5.1 2020-12-05 18:55:33 +01:00
Fabien Potencier
bda2dcdf93 bug #39251 [DependencyInjection] Fix container linter for union types (derrabus)
This PR was merged into the 4.4 branch.

Discussion
----------

[DependencyInjection] Fix container linter for union types

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #39233
| License       | MIT
| Doc PR        | N/A

Commits
-------

e26893b122 [DependencyInjection] Fix container linter for union types.
2020-12-05 18:12:03 +01:00
Alexander M. Turek
cf07627956 minor #39214 [Messenger] Test generated SQL (derrabus)
This PR was merged into the 4.4 branch.

Discussion
----------

[Messenger] Test generated SQL

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

Follow-up to #39166.

This is an attempt to the SQL generated by the `Symfony\Component\Messenger\Transport\Doctrine\Connection::get()` method. The challange was to create a locking SELECT statement, taking into account the different ways to create a lock in different SQL dialects.

This test verifies if the correct lock statements are generated for MySQL and SQL Server.

Commits
-------

1f1b62afb6 [Messenger] Test generated SQL
2020-12-05 18:10:39 +01:00
Fabien Potencier
fd3c60b315 Fix CS 2020-12-05 18:09:55 +01:00
Alexander M. Turek
1f1b62afb6 [Messenger] Test generated SQL 2020-12-05 18:08:48 +01:00
Nyholm
9104fd4539
[Config] YamlReferenceDumper: No default value required for VariableNode with array example 2020-12-05 17:41:45 +01:00
Alexander M. Turek
710340dfb2 Remove PHPUnit configuration files from components without tests. 2020-12-05 17:36:14 +01:00
Fabien Potencier
2f607dea7d Merge branch '5.1' into 5.2
* 5.1:
  [Messenger] StopWorkersCommand improve doc helper
  Added compatibility with PHPunit 9.5
  do not apply the Valid constraint on scalar form data
  [Test] Reproduce issue with cascading validation
  [SecurityBundle] Don't use the container as resource type in fixtures.
  Fix bug with whitespace in Kernel::stripComments()
2020-12-05 17:05:27 +01:00
Fabien Potencier
7e577b9cd9 Merge branch '4.4' into 5.1
* 4.4:
  [Messenger] StopWorkersCommand improve doc helper
  Added compatibility with PHPunit 9.5
  do not apply the Valid constraint on scalar form data
  [Test] Reproduce issue with cascading validation
  [SecurityBundle] Don't use the container as resource type in fixtures.
  Fix bug with whitespace in Kernel::stripComments()
2020-12-05 17:05:09 +01:00
Fabien Potencier
21ef411cc9 bug #39333 [Form] do not apply the Valid constraint on scalar form data (lchrusciel, xabbuh)
This PR was merged into the 4.4 branch.

Discussion
----------

[Form] do not apply the Valid constraint on scalar form data

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

#SymfonyHackday

Commits
-------

453bb3ebde do not apply the Valid constraint on scalar form data
41b9457887 [Test] Reproduce issue with cascading validation
2020-12-05 17:02:18 +01:00
Fabien Potencier
935495868a bug #39331 [PhpUnitBridge] Fixed PHPunit 9.5 compatibility (wouterj)
This PR was merged into the 4.4 branch.

Discussion
----------

[PhpUnitBridge] Fixed PHPunit 9.5 compatibility

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

Let's see if this works 🍀

#SymfonyHackday

Commits
-------

5134de52f1 Added compatibility with PHPunit 9.5
2020-12-05 16:57:56 +01:00
Fabien Potencier
d0d0ee3c4f minor #39217 [Messenger] StopWorkersCommand improve doc helper (94noni)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[Messenger] StopWorkersCommand improve doc helper

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

Small improvement :)

Commits
-------

e136068743 [Messenger] StopWorkersCommand improve doc helper
2020-12-05 16:51:46 +01:00
Antoine Makdessi
e136068743 [Messenger] StopWorkersCommand improve doc helper 2020-12-05 16:51:39 +01:00
Wouter de Jong
5134de52f1 Added compatibility with PHPunit 9.5 2020-12-05 16:15:30 +01:00
Christian Flothmann
453bb3ebde do not apply the Valid constraint on scalar form data 2020-12-05 16:10:06 +01:00
Łukasz Chruściel
41b9457887 [Test] Reproduce issue with cascading validation 2020-12-05 16:10:06 +01:00
Fabien Potencier
4ce800f840 minor #39324 [SecurityBundle] Don't use the container as resource type in fixtures (derrabus)
This PR was merged into the 4.4 branch.

Discussion
----------

[SecurityBundle] Don't use the container as resource type in fixtures

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

Discovered while working on #39292: Some fixtures of SecurityBundle call config loaders and pass the whole container as resource type. This does not really make sense.

Commits
-------

e7e38b7213 [SecurityBundle] Don't use the container as resource type in fixtures.
2020-12-05 13:50:50 +01:00
Fabien Potencier
cdb1883843 bug #39220 [HttpKernel] Fix bug with whitespace in Kernel::stripComments() (ausi)
This PR was merged into the 4.4 branch.

Discussion
----------

[HttpKernel] Fix bug with whitespace in Kernel::stripComments()

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

`Kernel::stripComments()` removes significant whitespace in some cases.

I noticed this in one of the generated classes, the code `<?php include_once \dirname(__DIR__).'/file.php';` got replaced with `<?php include_once\dirname(__DIR__).'/file.php';` which is a syntax error.

Commits
-------

8d368e1fe3 Fix bug with whitespace in Kernel::stripComments()
2020-12-05 13:50:17 +01:00
Alexander M. Turek
e7e38b7213 [SecurityBundle] Don't use the container as resource type in fixtures. 2020-12-05 13:07:14 +01:00
Alexander M. Turek
72abcc3051 Merge branch '5.1' into 5.2
* 5.1:
  [HttpFoundation] Make test pass without Xdebug.
  [Mime] Leverage PHP 8's detection of CSV files.
  [HttpFoundation] Make sure we reuse the current PHP binary for the webserver process in functional tests.
  [FrameworkBundle] TextDescriptor::formatControllerLink checked method…
  Fix CS
  [HttpClient] throw clearer error when no scheme is provided
  Fix github pr template and include 5.2 for bugfixes
  [HttpFoundation] Ignore stack trace printed by Xdebug 3.
  fix lexing backslashes in single quoted strings
2020-12-05 11:51:53 +01:00
Alexander M. Turek
2cf0686f72 Merge branch '4.4' into 5.1
* 4.4:
  [HttpFoundation] Make test pass without Xdebug.
  [Mime] Leverage PHP 8's detection of CSV files.
  [HttpFoundation] Make sure we reuse the current PHP binary for the webserver process in functional tests.
  [FrameworkBundle] TextDescriptor::formatControllerLink checked method…
  Fix CS
  [HttpClient] throw clearer error when no scheme is provided
  Fix github pr template and include 5.2 for bugfixes
  [HttpFoundation] Ignore stack trace printed by Xdebug 3.
  fix lexing backslashes in single quoted strings
2020-12-05 11:32:07 +01:00
Alexander M. Turek
cf94f2a591 [HttpFoundation] Make test pass without Xdebug. 2020-12-05 09:52:36 +01:00
Fabien Potencier
4a2946b46d bug #39252 [Mime] Leverage PHP 8's detection of CSV files (derrabus)
This PR was merged into the 4.4 branch.

Discussion
----------

[Mime] Leverage PHP 8's detection of CSV files

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

Commits
-------

41a965cdc4 [Mime] Leverage PHP 8's detection of CSV files.
2020-12-05 09:45:34 +01:00
Alexander M. Turek
41a965cdc4 [Mime] Leverage PHP 8's detection of CSV files. 2020-12-05 09:25:17 +01:00
Fabien Potencier
66d3f22cdf minor #39295 [HttpFoundation] Make sure we reuse the current PHP binary for the webserver process in functional tests. (derrabus)
This PR was merged into the 4.4 branch.

Discussion
----------

[HttpFoundation] Make sure we reuse the current PHP binary for the webserver process in functional tests.

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

While debugging HttpFoundation's functional tests with different PHP binaries, I noticed that the webserver process that is started there would always use the `php` binary from my `$PATH` instead of the binary I'm running PHPUnit with.

This PR attempts to fix this by using the `PHP_BINARY` constant.

Commits
-------

9208c69b21 [HttpFoundation] Make sure we reuse the current PHP binary for the webserver process in functional tests.
2020-12-05 09:21:21 +01:00
Alexander M. Turek
9208c69b21 [HttpFoundation] Make sure we reuse the current PHP binary for the webserver process in functional tests. 2020-12-05 09:17:15 +01:00
Fabien Potencier
eb6a79203b bug #39313 [FrameworkBundle] TextDescriptor::formatControllerLink checked method… (fjogeleit)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[FrameworkBundle] TextDescriptor::formatControllerLink checked method…

…_exists method before it ensures that $controller is not null

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

Today I tried PHP8 with Symfony 5.2. - by checking my routes with
```
bin/console debug:router
```

It throws
```
 method_exists(): Argument #1 ($object_or_class) must be of type object|string, null given
```

The reason is the configured auth route for the login API defined in routes.yaml:
```
authorization::login:
  path: '/login'
```
This route has no controller configured and the value of $controller in `TextDescriptor::formatControllerLink` in the FrameworkBundle is `null`. This method has a elseif condition with `method_exists` without a check if $controller is a string or object.
In PHP8 this throws an exception/error and did not work. This PR checks that `$controller` is not null before the method_exists check to prevent this failure.

I'm not sure how to test this in the existing Testsuite

Commits
-------

67bd779ef4 [FrameworkBundle] TextDescriptor::formatControllerLink checked method…
2020-12-05 09:14:47 +01:00
Frank Jogeleit
67bd779ef4 [FrameworkBundle] TextDescriptor::formatControllerLink checked method… 2020-12-05 09:14:40 +01:00
Fabien Potencier
ac9858b0c8 minor #39318 Fix @experimental annotations (fabpot)
This PR was merged into the 5.2 branch.

Discussion
----------

Fix @experimental annotations

| 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

Commits
-------

07781474bc Fix @experimental annotations
2020-12-05 08:34:04 +01:00
Fabien Potencier
71591dfd38 Merge branch '5.1' into 5.2
* 5.1:
  Add missing entries in .gitattributes
  Update README.md
2020-12-05 08:33:16 +01:00
Fabien Potencier
a0e7fc36a3 Add missing entries in .gitattributes 2020-12-05 08:09:10 +01:00
Fabien Potencier
07781474bc Fix @experimental annotations 2020-12-05 07:51:44 +01:00
Fabien Potencier
1e15aa69f4 minor #39293 [HttpFoundation] Ignore stack trace printed by Xdebug 3 (derrabus)
This PR was merged into the 4.4 branch.

Discussion
----------

[HttpFoundation] Ignore stack trace printed by Xdebug 3

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

If we're running HttpFoundation's functional tests with Xdebug 3, a stack trace will be printed when a warning is emitted. This confuses our `cookie_max_age` test currently where we perform a `setcookie()` call that will emit a warning.

I have patched the corresponding fixture so the printed stack trace is ignored.

A failed test can be seen here: https://travis-ci.com/github/symfony/symfony/jobs/452077515#L11078

Commits
-------

b67baa4e7f [HttpFoundation] Ignore stack trace printed by Xdebug 3.
2020-12-05 07:41:35 +01:00
Fabien Potencier
fb2ea6f632 Fix CS 2020-12-05 07:27:59 +01:00
Fabien Potencier
1177baa770 bug #39286 [HttpClient] throw clearer error when no scheme is provided (BackEndTea)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[HttpClient] throw clearer error when no scheme is provided

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #39285
| License       | MIT
| Doc PR        | N/A

This could be considred a BC break, as previously this would've  a `TransportExcepiton`, instead of an `InvalidArgumentException`. But i see no reason to catch this specific error, as it would generally be a configuration error.

Commits
-------

4d821d6c34 [HttpClient] throw clearer error when no scheme is provided
2020-12-05 07:03:15 +01:00
Gert de Pagter
4d821d6c34 [HttpClient] throw clearer error when no scheme is provided 2020-12-05 07:03:08 +01:00
Jan Schädlich
256b19005d Remove not used mailer_transport.xml service config 2020-12-04 21:40:37 +01:00
Alexander M. Turek
b67baa4e7f [HttpFoundation] Ignore stack trace printed by Xdebug 3. 2020-12-04 13:53:59 +01:00
Christian Flothmann
626d61ee7d bug #39267 [Yaml] fix lexing backslashes in single quoted strings (xabbuh)
This PR was merged into the 4.4 branch.

Discussion
----------

[Yaml] fix lexing backslashes in single quoted strings

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

Commits
-------

668732305a fix lexing backslashes in single quoted strings
2020-12-04 09:57:25 +01:00
tsilefy
58ef54b229 Update README.md 2020-12-03 21:59:39 +01:00
Alexander M. Turek
2b36487983 Merge branch '5.1' into 5.2
* 5.1:
  [DependencyInjection] Fixed incorrect report for private services if required service does not exist
  Remove Xdebug from php-extra runs.
2020-12-03 10:29:40 +01:00
Alexander M. Turek
2d062df845 Merge branch '4.4' into 5.1
* 4.4:
  [DependencyInjection] Fixed incorrect report for private services if required service does not exist
  Remove Xdebug from php-extra runs.
2020-12-03 10:18:36 +01:00
Alexander M. Turek
fbd67c8f85 bug #39151 [DependencyInjection] Fixed incorrect report for private services if required service does not exist (Islam93)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[DependencyInjection] Fixed incorrect report for private services if required service does not exist

…does not exist

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

looks like `CheckExceptionOnInvalidReferenceBehaviorPass` can be moved to `beforeRemovingPasses` section without any consequences. this solves the problem and all tests still pass

Commits
-------

39bd05c5bc [DependencyInjection] Fixed incorrect report for private services if required service does not exist
2020-12-03 02:30:31 +01:00
Islam Israfilov (Islam93)
39bd05c5bc [DependencyInjection] Fixed incorrect report for private services if required service does not exist 2020-12-03 02:30:23 +01:00
kick-the-bucket
8b9b62048c Remove unused @throws tags and handling of never thrown exceptions 2020-12-02 16:16:03 +01:00
Fabien Potencier
4b97b160a2 bug #39236 [Notifier] Fix slack section block (norkunas)
This PR was merged into the 5.2 branch.

Discussion
----------

[Notifier] Fix slack section block

| Q             | A
| ------------- | ---
| Branch?       | 5.2
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #...
| License       | MIT
| Doc PR        | symfony/symfony-docs#...

In SlackSectionBlock fields array is not initialized directly in the constructor so when running tests and trying to add a field to  it throws `Undefined index: fields`.

Commits
-------

472fa3b50a Fix checking slack section fields limit
2020-12-02 12:28:51 +01:00
Chi-teck
f90f27b63a Fix rate limiter documentation 2020-12-02 09:46:43 +01:00
Alexander M. Turek
56e79395c4 Merge branch '5.1' into 5.2
* 5.1:
  Fix merge.
  fix lexing mapping values with trailing whitespaces
  [String] Fix Notice when argument is empty string
  [Inflector] Fix Notice when argument is empty string
  Fix small typos
2020-12-02 09:39:23 +01:00
Alexander M. Turek
d4100fb453 Merge branch '4.4' into 5.1
* 4.4:
  fix lexing mapping values with trailing whitespaces
2020-12-01 21:33:29 +01:00
Alexander M. Turek
6f7e4dd8dc Fix merge. 2020-12-01 21:15:15 +01:00
Alexander M. Turek
7882c4a0b1 bug #39274 [Yaml] fix lexing mapping values with trailing whitespaces (xabbuh)
This PR was merged into the 4.4 branch.

Discussion
----------

[Yaml] fix lexing mapping values with trailing whitespaces

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix https://github.com/symfony/symfony/issues/39265#issuecomment-736552123
| License       | MIT
| Doc PR        |

Commits
-------

5e455f321a fix lexing mapping values with trailing whitespaces
2020-12-01 21:08:57 +01:00
Grégoire Pineau
d899f5de54 bug #39256 [Workflow] Fixed case when the marking store is not defined (lyrixx)
This PR was merged into the 5.2 branch.

Discussion
----------

[Workflow] Fixed case when the marking store is not defined

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

---

Since we are using `abstract_arg()` in the [service definition](https://github.com/symfony/symfony/blob/v5.2.0/src/Symfony/Bundle/FrameworkBundle/Resources/config/workflow.php#L25) (where we used `null` before), and since there is a validation mechanism that ensure all abstract arg are resolved, the container compilation failed.
But if the marking store is not defined (which is legit), we want to fallback on the raw PHP implementation.
That's why, now, I replace the abstract arg by null, and everything seems OK

Commits
-------

bd38cceaa8 [Workflow] Fixed case when the marking store is not defined
2020-12-01 19:56:33 +01:00
Alexander M. Turek
88cbcf99c0 bug #39244 [String] Fix Notice when argument is empty string (moldman)
This PR was merged into the 5.1 branch.

Discussion
----------

[String] Fix Notice when argument is empty string

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

PHP Notice is generated when we pass empty string to `singularize` or `pluralize` method.
```
$inflector = new \Symfony\Component\String\Inflector\EnglishInflector();
$inflector->singularize('');
```
```
Notice: Uninitialized string offset: 0 in vendor/symfony/string/Inflector/EnglishInflector.php on line 344
PHP Notice:  Uninitialized string offset: 0 in vendor/symfony/string/Inflector/EnglishInflector.php on line 344
```
```
$inflector = new \Symfony\Component\String\Inflector\EnglishInflector();
$inflector->pluralize('');
```
```
Notice: Uninitialized string offset: 0 in vendor/symfony/string/Inflector/EnglishInflector.php on line 424
PHP Notice:  Uninitialized string offset: 0 in vendor/symfony/string/Inflector/EnglishInflector.php on line 424
```

**Background**:
When `\Symfony\Component\PropertyAccess\PropertyAccessorInterface::setValue` is used with `_` property, then it calls \Symfony\Component\String\Inflector\EnglishInflector::singularize with empty string.
```
class Check
{
    public $_;
}
$check = new Check();
$pr = PropertyAccess::createPropertyAccessorBuilder()
    ->getPropertyAccessor();
if($pr->isWritable($check, '_')){
    $pr->setValue($check, '_', 'test');
}
var_dump($check);
```
```
Notice: Uninitialized string offset: 0 in vendor/symfony/string/Inflector/EnglishInflector.php on line 344
PHP Notice:  Uninitialized string offset: 0 in vendor/symfony/string/Inflector/EnglishInflector.php on line 344
...
Notice: Uninitialized string offset: 0 in vendor/symfony/string/Inflector/EnglishInflector.php on line 344
PHP Notice:  Uninitialized string offset: 0 in vendor/symfony/string/Inflector/EnglishInflector.php on line 344

Notice: Uninitialized string offset: 0 in vendor/symfony/string/Inflector/EnglishInflector.php on line 344
object(Check)#6 (1) {
  ["_"]=>
  string(4) "test"
}
```

P.S.
Another solution is to include empty string in \Symfony\Component\String\Inflector\EnglishInflector::$uninflected
```
    private static $uninflected = [
        '',
        'atad',
        'reed',
        'kcabdeef',
        'hsif',
        'ofni',
        'esoom',
        'seires',
        'peehs',
        'seiceps',
    ];
```

If this PR is not relevant please close and sorry for inconvenience.

Commits
-------

88c2b9be62 [String] Fix Notice when argument is empty string
2020-12-01 18:07:21 +01:00
Alexander M. Turek
f7c372e636 Merge branch '4.4' into 5.1
* 4.4:
  [Inflector] Fix Notice when argument is empty string
2020-12-01 18:05:45 +01:00
Alexander M. Turek
782ee5d1d3 bug #39270 [Inflector] Fix Notice when argument is empty string (moldman)
This PR was merged into the 4.4 branch.

Discussion
----------

[Inflector] Fix Notice when argument is empty string

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

Fixing issue when we call `Inflector` with empty string:

```
\Symfony\Component\Inflector\Inflector::singularize('');
```
```
Notice: Uninitialized string offset: 0 in src/Symfony/Component/Inflector/Inflector.php on line 363
PHP Notice:  Uninitialized string offset: 0 in src/Symfony/Component/Inflector/Inflector.php on line 363
...
Notice: Uninitialized string offset: 0 in src/Symfony/Component/Inflector/Inflector.php on line 363
PHP Notice:  Uninitialized string offset: 0 in src/Symfony/Component/Inflector/Inflector.php on line 363
```

Fix for 5.1 https://github.com/symfony/symfony/pull/39244

Commits
-------

2dfe342452 [Inflector] Fix Notice when argument is empty string
2020-12-01 18:03:27 +01:00
Christian Flothmann
5e455f321a fix lexing mapping values with trailing whitespaces 2020-12-01 17:24:09 +01:00
moldman
88c2b9be62 [String] Fix Notice when argument is empty string 2020-12-01 17:34:07 +02:00
moldman
2dfe342452 [Inflector] Fix Notice when argument is empty string 2020-12-01 17:29:30 +02:00
Christian Flothmann
668732305a fix lexing backslashes in single quoted strings 2020-12-01 15:29:09 +01:00
Romaric Drigon
0222ed3a32 [Security] fix #39262, more defensive PasswordMigratingListener 2020-12-01 12:09:46 +01:00
Grégoire Pineau
bd38cceaa8 [Workflow] Fixed case when the marking store is not defined 2020-12-01 10:12:38 +01:00
Romaric Drigon
c3778050bd [Security] fix #39249, default entry_point compiler pass was returning too early 2020-12-01 09:51:35 +01:00
Jérémy Benoist
529bbaf0a9
Fix small typos 2020-12-01 09:40:05 +01:00
Alexander M. Turek
0d9dd43ecc Merge branch '5.1' into 5.2
* 5.1:
  remove return type definition in order to avoid type juggling
2020-11-30 23:47:11 +01:00
Alexander M. Turek
e4f1b5be56 Merge branch '4.4' into 5.1
* 4.4:
  remove return type definition in order to avoid type juggling
2020-11-30 23:46:30 +01:00
Alexander M. Turek
e26893b122 [DependencyInjection] Fix container linter for union types. 2020-11-30 22:45:46 +01:00
Alexander M. Turek
0b8d634706 Merge branch '5.1' into 5.2
* 5.1:
  Added additional file existence check on temporary file cleanup for dumpFile method
  fix lexing inline sequences/mappings with trailing whitespaces
  Added test for issue 39229
  [Console] Enable hyperlinks in Konsole/Yakuake
2020-11-30 18:15:52 +01:00
Tomas
472fa3b50a Fix checking slack section fields limit 2020-11-30 19:08:19 +02:00
Bernard van der Esch
668431fc09 remove return type definition in order to avoid type juggling 2020-11-30 18:07:19 +01:00
Alexander M. Turek
8bced673cc Merge branch '4.4' into 5.1
* 4.4:
  Added additional file existence check on temporary file cleanup for dumpFile method
  fix lexing inline sequences/mappings with trailing whitespaces
  Added test for issue 39229
  [Console] Enable hyperlinks in Konsole/Yakuake
2020-11-30 18:05:38 +01:00
Robin Chalas
da65c57fb4 bug #39223 [Console] Re-enable hyperlinks in Konsole/Yakuake (OndraM)
This PR was merged into the 4.4 branch.

Discussion
----------

[Console] Re-enable hyperlinks in Konsole/Yakuake

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

Hyperlinks feature was broken in KDE's Konsole/Yakuake (#31809) and thus disabled by #31849.

But the feature has been recently [implemented](https://invent.kde.org/utilities/konsole/-/merge_requests/138), and is about to be released in KDE 20.12 on December 10th 2020, see [release notes](https://community.kde.org/Releases/20.12_Release_Notes#Konsole).

![obrazek](https://user-images.githubusercontent.com/793041/100556284-92dccf00-32a1-11eb-9907-f65c2eaa1335.png)

Tested in RC version and seems to be working fine. The feature is disabled by default (as per security concerns), but even when disabled, it just gracefully don't show the links.

Commits
-------

728edf36bf [Console] Enable hyperlinks in Konsole/Yakuake
2020-11-30 17:35:14 +01:00
Alexander M. Turek
f9e93342df bug #39241 [Yaml] fix lexing inline sequences/mappings with trailing whitespaces (Nyholm, xabbuh)
This PR was merged into the 4.4 branch.

Discussion
----------

[Yaml] fix lexing inline sequences/mappings with trailing whitespaces

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

Commits
-------

66bc898f61 fix lexing inline sequences/mappings with trailing whitespaces
b562a54e53 Added test for issue 39229
2020-11-30 17:34:03 +01:00
gechetspr
520a10c221 Added additional file existence check on temporary file cleanup for dumpFile method 2020-11-30 15:04:35 +02:00
Christian Flothmann
66bc898f61 fix lexing inline sequences/mappings with trailing whitespaces 2020-11-30 13:49:14 +01:00
Nyholm
b562a54e53
Added test for issue 39229 2020-11-30 13:01:48 +01:00
Thomas Calvet
41158b8878 [PhpUnitBridge] Fix disabling DeprecationErrorHandler from phpunit configuration file 2020-11-30 09:16:37 +01:00
Fabien Potencier
6440b70b31 Bump Symfony version to 5.2.1 2020-11-30 06:59:51 +01:00
Fabien Potencier
25acc0b5df Update VERSION for 5.2.0 2020-11-30 06:54:18 +01:00
Fabien Potencier
ffd365bb5e feature #39213 [Security] [DX] Automatically add PasswordUpgradeBadge + default support() impl in AbstractFormLoginAuthenticator (wouterj)
This PR was squashed before being merged into the 5.2 branch.

Discussion
----------

[Security] [DX] Automatically add PasswordUpgradeBadge + default support() impl in AbstractFormLoginAuthenticator

| Q             | A
| ------------- | ---
| Branch?       | 5.2 (hopefully? sorry to keep pushing the barrier here)
| Bug fix?      | no
| New feature?  | yes (sort of)
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | -

These are 2 suggestions we found while implementing `make:auth` for the new system (https://github.com/symfony/maker-bundle/pull/736):

Impact on a custom login form authenticator ([as generated by the new maker](https://github.com/symfony/maker-bundle/pull/736/files#diff-528164b6c24778d5e81fa3819b0552f0e68a9fea33c7d3446a012f3da7d0af60)):

* **Automatically add `PasswordUpgradeBadge`** if there is a user password with valid password credentials.
   ```diff
    // ...
    return new Passport(
        new UserBadge($userIdentifier),
        new PasswordCredentials($password),
        [
   -        new PasswordUpgradeBadge($password),
            new CsrfTokenBadge('authenticate', $csrf),
        ]
    )
   ```
   Note that this does not automatically migrate all passwords: it still relies on `PasswordUpgraderInterface` to be implemented on the user loader/provider.
* **Add default implementation of `AbstractFormLoginAuthenticator::support()`**
   ```diff
   - public function supports(Request $request): ?bool
   -  {
   -      return self::LOGIN_ROUTE === $request->attributes->get('_route')
   -          && $request->isMethod('POST');
   - }
   ```

cc @weaverryan @jrushlow

Commits
-------

27450c0bb4 [Security] [DX] Automatically add PasswordUpgradeBadge + default support() impl in AbstractFormLoginAuthenticator
2020-11-30 06:47:07 +01:00
Wouter de Jong
27450c0bb4 [Security] [DX] Automatically add PasswordUpgradeBadge + default support() impl in AbstractFormLoginAuthenticator 2020-11-30 06:46:27 +01:00
Ondřej Machulda
728edf36bf
[Console] Enable hyperlinks in Konsole/Yakuake 2020-11-30 00:58:52 +01:00
Martin Auswöger
8d368e1fe3 Fix bug with whitespace in Kernel::stripComments() 2020-11-29 22:29:34 +01:00
Fabien Potencier
d4ccae9b31 Bump Symfony version to 5.1.10 2020-11-29 10:31:15 +01:00
Fabien Potencier
a2efa61d2d Update VERSION for 5.1.9 2020-11-29 10:27:52 +01:00
Fabien Potencier
aa5ec20a0c Bump Symfony version to 4.4.18 2020-11-29 10:27:10 +01:00
Fabien Potencier
09df32693a Update VERSION for 4.4.17 2020-11-29 10:23:08 +01:00
Alexander M. Turek
d620f91025 Merge branch '5.1' into 5.2
* 5.1:
  [Messenger] Fix mssql compatibility for doctrine transport.
2020-11-29 00:28:16 +01:00
Alexander M. Turek
9ff1436a90 Merge branch '4.4' into 5.1
* 4.4:
  [Messenger] Fix mssql compatibility for doctrine transport.
2020-11-29 00:22:02 +01:00
bill moll
37be094992 [Messenger] Fix mssql compatibility for doctrine transport.
Add logic for locking row for update when the doctrine dbal connection is sqlsrv. This is a quick and dirty solution, but it prevents the need to rewrite the logic due to doctrine dbal limitations.

See issue https://github.com/symfony/symfony/issues/39117
2020-11-28 23:57:36 +01:00
Nicolas Grekas
0c285d1d42 bug #39210 [DoctrineBridge] Fix form EntityType with filter on UID (jderusse)
This PR was merged into the 5.2 branch.

Discussion
----------

[DoctrineBridge] Fix form EntityType with filter on UID

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

Convert UUID and ULID to the right format in ORMQueryBuilder

/cc @nicolas-grekas

Commits
-------

9e83bb7634 Fix form EntotyType with uid
2020-11-28 14:47:02 +01:00
Nicolas Grekas
e2713235c1 Merge branch '5.1' into 5.2
* 5.1:
  [HttpClient] partial revert of previous commit
2020-11-28 14:45:20 +01:00
Nicolas Grekas
8d512d9819 [HttpClient] partial revert of previous commit 2020-11-28 14:45:11 +01:00
Jérémy Derussé
9e83bb7634
Fix form EntotyType with uid 2020-11-28 14:40:09 +01:00
Nicolas Grekas
fcea35b31d Merge branch '5.1' into 5.2
* 5.1:
  [HttpClient] fix binding to network interfaces
  [HttpClient] fix binding to network interfaces
2020-11-28 14:34:12 +01:00
Nicolas Grekas
a3da101204 minor #39212 [HttpClient] fix binding to network interfaces (nicolas-grekas)
This PR was merged into the 5.1 branch.

Discussion
----------

[HttpClient] fix binding to network interfaces

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

Continuing #39211 on 5.1

Commits
-------

02d16324a5 [HttpClient] fix binding to network interfaces
2020-11-28 14:33:51 +01:00
Nicolas Grekas
a5c636c80b Merge branch '4.4' into 5.1
* 4.4:
  [HttpClient] fix binding to network interfaces
2020-11-28 14:33:17 +01:00
Nicolas Grekas
02d16324a5 [HttpClient] fix binding to network interfaces 2020-11-28 14:32:28 +01:00
Nicolas Grekas
faa1fd32f9 [HttpClient] fix binding to network interfaces 2020-11-28 14:23:02 +01:00
Alexander M. Turek
fd05da651b Merge branch '5.1' into 5.2
* 5.1:
  Fix parameter order
  [DependencyInjection] Fix circular in DI with lazy + byContruct loop
  adjust Client::getProfile() typehint
  adjust KernelBrowser::getProfile() typehint
  fix: resolving pt translation issues
  Update VERSION for 3.4.47
  Update CONTRIBUTORS for 3.4.47
  Update CHANGELOG for 3.4.47
  Add Romanian missing translations
  [DependencyInjection][Translator] Silent deprecation triggered by libxml_disable_entity_loader
  fix lexing strings containing escaped quotation characters
  prevent duplicated error message for file upload limits
  ignore the pattern attribute for textareas
  fix: solving pt-br translation issues
2020-11-28 12:24:18 +01:00
Alexander M. Turek
441ceecad6 minor #39198 [FrameworkBundle] [minor] adjust KernelBrowser::getProfile() typehint (kbond)
This PR was merged into the 5.1 branch.

Discussion
----------

[FrameworkBundle] [minor] adjust KernelBrowser::getProfile() typehint

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

`Profiler::loadProfileFromResponse()` can return `null`. Obviously having a return of `null|false` is unfortunate. Not sure what we can do about that...

Commits
-------

ce046fd120 adjust KernelBrowser::getProfile() typehint
2020-11-28 11:59:23 +01:00
Alexander M. Turek
e70ccfe55d Merge branch '4.4' into 5.1
* 4.4:
  Fix parameter order
  [DependencyInjection] Fix circular in DI with lazy + byContruct loop
  adjust Client::getProfile() typehint
  fix: resolving pt translation issues
  Update VERSION for 3.4.47
  Update CONTRIBUTORS for 3.4.47
  Update CHANGELOG for 3.4.47
  Add Romanian missing translations
  [DependencyInjection][Translator] Silent deprecation triggered by libxml_disable_entity_loader
  fix lexing strings containing escaped quotation characters
  prevent duplicated error message for file upload limits
  ignore the pattern attribute for textareas
  fix: solving pt-br translation issues
2020-11-28 11:57:20 +01:00
Jérémy Derussé
726f3616a8
Fix parameter order 2020-11-28 11:15:42 +01:00
Nicolas Grekas
e57b5f2abf minor #39197 [Validation] updating pt translations (hugovms, cenoura)
This PR was merged into the 4.4 branch.

Discussion
----------

[Validation] updating pt translations

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

Finishing PR #38923

Commits
-------

4857be89d3 fix: resolving pt translation issues
935a3b23e2 fix: solving pt-br translation issues
2020-11-27 17:19:44 +01:00
Nicolas Grekas
7d7fa3e822 bug #39129 [DependencyInjection] Fix circular in DI with lazy + byContruct loop (jderusse)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[DependencyInjection] Fix circular in DI with lazy + byContruct loop

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

This fix another issue lazy service.
It partially revert #38980 and #39021

Initially, we trusted lazy services to be lazy and not beeing called while building the services graph
=> bug #38970 when lazy deps is injected in a factory, it may be consumed directly to build the object before the graph is fully built
Fixed by #38980 => lazy service are considered as "normal service"
=> bug #39015 some loop are not resolvable with "normal service", but it shouldn't be an issue when servie proxifyied
Fixed by #39021 => lazy service are considered as "normal service" except when proxyfied
=> bug #39120 some loop are not resolvable with "normal service", but it shouldn't be an issue because the lazy service is injected in the constructor and user

Fixed by this PR => that revert to the initial state. lazy service are trusted.
But now, The IterratorArgument injected in a factory (single exception) is not more considered as lazy

Commits
-------

54af139a4e [DependencyInjection] Fix circular in DI with lazy + byContruct loop
2020-11-27 16:54:06 +01:00
Jérémy Derussé
54af139a4e [DependencyInjection] Fix circular in DI with lazy + byContruct loop 2020-11-27 16:54:00 +01:00
Michał Jusięga
c3d00dbeba Allow symfony/semaphore on PHP8 2020-11-27 15:15:14 +01:00
Kevin Bond
5f2bb905e7
adjust Client::getProfile() typehint 2020-11-27 09:11:20 -05:00
Kevin Bond
ce046fd120
adjust KernelBrowser::getProfile() typehint 2020-11-27 09:08:52 -05:00
Guilherme Augusto Henschel
4857be89d3 fix: resolving pt translation issues 2020-11-27 09:41:21 -03:00
Fabien Potencier
16535b2a64 Merge branch '5.1' into 5.2
* 5.1:
  fix denormalizing scalar with UnwrappingDenormalizer
2020-11-27 11:27:27 +01:00
Fabien Potencier
df7099cb2d feature #39153 [Security] Automatically register custom authenticator as entry_point (if supported) (wouterj)
This PR was squashed before being merged into the 5.2 branch.

Discussion
----------

[Security] Automatically register custom authenticator as entry_point (if supported)

| Q             | A
| ------------- | ---
| Branch?       | 5.2 (hopefully?)
| Bug fix?      | no
| New feature?  | yes
| Deprecations? | no
| Tickets       | Fix #37068
| License       | MIT
| Doc PR        | -

@weaverryan came up with exactly the same issue as proposed by a contributor before (see referenced ticket). Back then, it was decided impossible to fix: see https://github.com/symfony/symfony/pull/37075. However, after some thinking we came up with a way to fix the issue and improve the DX for custom authenticators.

The new authenticators are no longer required to implement `AuthenticationEntryPointInterface` (required for internal authenticators like the `RememberMeAuthenticator` and pre authenticated ones). This PR uses a compiler pass to check if a custom authenticator is supported:

```yaml
security:
  firewalls:
    main:
      # in any case, if an entry_point is already configured it'll not be overriden
      # (http_basic remains the entry point here)
      http_basic: ~
      custom_authenticator: App\Security\CustomAuthenticator
      entry_point: http_basic

      # if only one custom authenticator implements AuthenticationEntryPointInterface,
      # it's automatically configured as the entry point
      custom_authenticator: App\Security\CustomAuthenticator
      custom_authenticators: [App\Security\CustomAuthenticator, App\Security\NoEntryPointAuthenticator]

      # if no custom authenticator implements AuthenticationEntryPointInterface,
      # an error is thrown
      custom_authenticator: App\Security\NoEntryPointAuthenticator

      # if more than one authenticator implements AuthenticationEntryPointInterface,
      # the entry point must be configured explicitly (or an error is thrown)
      custom_authenticators: [App\Security\CustomAuthenticator, App\Security\AnotherCustomAuthenticator]
      entry_point: App\Security\CustomAuthenticator
```

---

I know this is very late for Symfony 5.2. It would be good to decide whether this can be included in the release, in order to smooth out the biggest struggle for people using custom authenticators for the first time.

Commits
-------

cab0672248 [Security] Automatically register custom authenticator as entry_point (if supported)
2020-11-27 11:24:59 +01:00
Wouter de Jong
cab0672248 [Security] Automatically register custom authenticator as entry_point (if supported) 2020-11-27 11:24:53 +01:00
Fabien Potencier
67f1f1e159 Update VERSION for 3.4.47 2020-11-27 09:42:42 +01:00
Fabien Potencier
123fd2e066 minor #39036 Add Romanian missing translations (gabiudrescu)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

   Add Romanian missing translations

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | kinda
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #38758
| License       | MIT
| Doc PR        | n/a

Commits
-------

6aa31a13c7 Add Romanian missing translations
2020-11-27 09:28:28 +01:00
Gabi Udrescu
6aa31a13c7 Add Romanian missing translations 2020-11-27 09:28:00 +01:00
Fabien Potencier
6db84b6ae9 bug #39068 [DependencyInjection][Translator] Silent deprecation triggered by libxml_disable_entity_loader (jderusse)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[DependencyInjection][Translator] Silent deprecation triggered by libxml_disable_entity_loader

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

The XML entity loader is disabled by default since libxml 2.9
But, since PHP 8.0, calling the method `libxml_disable_entity_loader` triggers a deprecation which has been solved in symfony by calling `libxml_disable_entity_loader` only for libxml < 2.9

The issue is, some dependencies, enable the entity loader and does not restore the initial state afterward, leading to exceptions triggered by Symfony iteself.

In previous versions symfony was resilient by disabling the flag before working, which is not the case anymore to avoid the deprecation.

This PR restore the resiliency of Symfony for PHP < 8.0, which is not yet deprecated.

But we have no way to check the status of the entity loader without triggering a deprecation with Symfony 8.

Commits
-------

114b7a543a [DependencyInjection][Translator] Silent deprecation triggered by libxml_disable_entity_loader
2020-11-27 07:35:58 +01:00
Jérémy Derussé
114b7a543a [DependencyInjection][Translator] Silent deprecation triggered by libxml_disable_entity_loader 2020-11-27 07:35:49 +01:00
Fabien Potencier
66e76d1916 bug #39119 [Form] prevent duplicated error message for file upload limits (xabbuh)
This PR was merged into the 4.4 branch.

Discussion
----------

[Form] prevent duplicated error message for file upload limits

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #32045, #36503, #39107
| License       | MIT
| Doc PR        |

Commits
-------

fe6a2dd64f prevent duplicated error message for file upload limits
2020-11-27 07:25:03 +01:00
Fabien Potencier
1fb80e7cf0 bug #39099 [Form] ignore the pattern attribute for textareas (xabbuh)
This PR was merged into the 4.4 branch.

Discussion
----------

[Form] ignore the pattern attribute for textareas

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

Commits
-------

e7698e7434 ignore the pattern attribute for textareas
2020-11-27 07:20:55 +01:00
Fabien Potencier
ac25e8c912 feature #39118 [DoctrineBridge] Require doctrine/persistence 2 (greg0ire)
This PR was merged into the 5.2 branch.

Discussion
----------

[DoctrineBridge] Require doctrine/persistence 2

| Q             | A
| ------------- | ---
| Branch       | 5.x
| 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
| License       | MIT
| Doc PR        | n/a

This allows us to remove autoload calls that are necessary for the
persistence 1 backwards-compatibility layer to work.

This is a follow up of #35728

Commits
-------

574a184b9a Require doctrine/persistence 2
2020-11-27 07:18:14 +01:00
Fabien Potencier
7378b0b836 feature #39128 [HttpFoundation] Deprecate BinaryFileResponse::create() (derrabus)
This PR was merged into the 5.2 branch.

Discussion
----------

[HttpFoundation] Deprecate BinaryFileResponse::create()

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

Follows #34771. We've deprecated the static `::create()` methods on all response classes but `BinaryFileResponse`. This PR proposes to fix this inconsistency.

Commits
-------

9ce2e86207 [HttpFoundation] Deprecate BinaryFileResponse::create().
2020-11-27 07:13:25 +01:00
Fabien Potencier
d558964026 bug #39154 [Yaml] fix lexing strings containing escaped quotation characters (xabbuh)
This PR was merged into the 4.4 branch.

Discussion
----------

[Yaml] fix lexing strings containing escaped quotation characters

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

Commits
-------

673b8e941a fix lexing strings containing escaped quotation characters
2020-11-27 07:07:37 +01:00
Fabien Potencier
3d384ba76b bug #39180 [Serializer] Fix denormalizing scalar with UnwrappingDenormalizer (camilledejoye)
This PR was merged into the 5.1 branch.

Discussion
----------

[Serializer] Fix denormalizing scalar with UnwrappingDenormalizer

| Q             | A
| ------------- | ---
| Branch?       | 5.1
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #38983
| License       | MIT
| Doc PR        | none

In order to work the `UnwrappingDenormlizer` needs to be called first to unwrap the data so that it can be handled by other denormalizers.
To not introduce any BC break this PR does not move the logic into it's own class, instead it checks if a denormalizer supports the data and only denormalize scalar values if there is none.

Commits
-------

98cf389fb9 fix denormalizing scalar with UnwrappingDenormalizer
2020-11-27 06:53:16 +01:00
Alexander M. Turek
01bea3c085 Support for SwitchUserToken instances serialized with 4.4/5.1. 2020-11-27 02:03:01 +01:00
Alexander M. Turek
62184bd8f0 Merge branch '5.1' into 5.2
* 5.1:
  Fix test.
  [PhpUnitBridge] Fix qualification of deprecations triggered by the debug class loader
  Improve return phpdoc for Normalizer
  Use a partial buffer in SymfonyStyle
  Fix console closing tag
  Fix typo in comment
  [VarDumper] fix casting resources turned into objects on PHP 8
2020-11-27 01:39:34 +01:00
Alexander M. Turek
b047064842 Fix test. 2020-11-27 01:30:48 +01:00
Alexander M. Turek
b96d0089a5 Merge branch '4.4' into 5.1
* 4.4:
  [PhpUnitBridge] Fix qualification of deprecations triggered by the debug class loader
  Improve return phpdoc for Normalizer
  Use a partial buffer in SymfonyStyle
  Fix console closing tag
  Fix typo in comment
  [VarDumper] fix casting resources turned into objects on PHP 8
2020-11-27 00:46:31 +01:00
Thomas Calvet
dff539434e [PhpUnitBridge] Fix qualification of deprecations triggered by the debug class loader 2020-11-26 18:48:00 +01:00
Camille Dejoye
98cf389fb9 fix denormalizing scalar with UnwrappingDenormalizer 2020-11-26 14:58:42 +01:00
Robin Chalas
fd910eb5b5 bug #39160 [Console] Use a partial buffer in SymfonyStyle (jderusse)
This PR was merged into the 4.4 branch.

Discussion
----------

[Console] Use a partial buffer in SymfonyStyle

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

Symfony style needs to buffer output in order to get the last 2 chars in order to prepend Block.

By using a `BufferedOutput` symfony bufferize everything while it not needed.

This PR adds a new `TrimmedBufferOutput` that keep only the N last chars.

Commits
-------

18fca2984d Use a partial buffer in SymfonyStyle
2020-11-26 00:15:36 +01:00
Vincent Langlet
f2713d6580 Improve return phpdoc for Normalizer 2020-11-25 12:55:08 +01:00
Jérémy Derussé
18fca2984d
Use a partial buffer in SymfonyStyle 2020-11-25 12:18:08 +01:00
Jérémy Derussé
2834c279d7
Fix console closing tag 2020-11-25 01:21:23 +01:00
Alexander M. Turek
f9d2afb9a0 bug #39155 [VarDumper] fix casting resources turned into objects on PHP 8 (nicolas-grekas)
This PR was merged into the 4.4 branch.

Discussion
----------

[VarDumper] fix casting resources turned into objects on PHP 8

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

Commits
-------

76a077d947 [VarDumper] fix casting resources turned into objects on PHP 8
2020-11-24 17:05:32 +01:00
Ikko Ashimine
ca93ae5b1a Fix typo in comment
possibe -> possible
2020-11-24 14:31:32 +01:00
Christian Flothmann
673b8e941a fix lexing strings containing escaped quotation characters 2020-11-24 13:28:30 +01:00
Nicolas Grekas
76a077d947 [VarDumper] fix casting resources turned into objects on PHP 8 2020-11-24 10:55:37 +01:00
Michael Käfer
1e3baad386 23412 Stop treating multiline resources as globs 2020-11-22 23:59:06 +01:00
Ryan Weaver
79571e0e77 Removing AnonymousPassport
This is not used - is leftover from the security component
authenticator changes
2020-11-22 09:22:08 -05:00
Christian Flothmann
fe6a2dd64f prevent duplicated error message for file upload limits 2020-11-21 11:45:32 +01:00
Christian Flothmann
bdadbf31a0 Merge branch '5.1' into 5.2
* 5.1:
  Display debug info
  [HttpClient] don't fallback to HTTP/1.1 when HTTP/2 streams break
  fix lexing nested sequences/mappings
2020-11-21 10:39:55 +01:00
Christian Flothmann
634d168d9c Merge branch '4.4' into 5.1
* 4.4:
  [HttpClient] don't fallback to HTTP/1.1 when HTTP/2 streams break
  fix lexing nested sequences/mappings
2020-11-21 10:37:14 +01:00
Fabien Potencier
af8bd4bd26 Bump Symfony version to 5.2.0 2020-11-21 09:49:39 +01:00
Fabien Potencier
192b826178 Update VERSION for 5.2.0-RC2 2020-11-21 09:45:53 +01:00
Jérémy Derussé
fcbf0bf76e
Display debug info 2020-11-20 23:06:42 +01:00
Anderson Müller
4c6f4c7b9c
[HttpFoundation] Typo on deprecation package name 2020-11-20 18:25:36 +01:00
Alexander M. Turek
9ce2e86207 [HttpFoundation] Deprecate BinaryFileResponse::create(). 2020-11-20 16:47:02 +01:00
Grégoire Paris
574a184b9a
Require doctrine/persistence 2
This allows us to remove autoload calls that are necessary for the
persistence 1 backwards-compatibility layer to work.
The require-dev constraints on doctrine/orm are bumped to ^2.7.3 because
lower versions are not compatible with doctrine/persistence 2.
2020-11-20 09:22:35 +01:00
Fabien Potencier
b60bb6e2d6 bug #39115 [HttpClient] don't fallback to HTTP/1.1 when HTTP/2 streams break (nicolas-grekas)
This PR was merged into the 4.4 branch.

Discussion
----------

[HttpClient] don't fallback to HTTP/1.1 when HTTP/2 streams break

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix https://github.com/composer/composer/issues/9481
| License       | MIT
| Doc PR        | -

With this change, I don't reproduce the failures that I describe in https://github.com/composer/composer/issues/9481 when running the script in #38690

Apparently curl has an issue when both h1.1 and h2 connections are open to the same host.

Instead of switching to HTTP/1.1 when retrying requests that failed because of an HTTP/2 stream error, I propose to close the http/2 connection when issuing a retry.

With this change, running the mirroring script of packagist works like a charm.

No need to investigate your mirrors @Seldaek, this was definitely a data corruption issue.

Commits
-------

0c92bc5a83 [HttpClient] don't fallback to HTTP/1.1 when HTTP/2 streams break
2020-11-19 07:02:19 +01:00
Fabien Potencier
308231aafb bug #33763 [Yaml] fix lexing nested sequences/mappings (xabbuh)
This PR was merged into the 4.4 branch.

Discussion
----------

[Yaml] fix lexing nested sequences/mappings

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | #34805, #37788, #37876, #39011, #39013, #39064
| License       | MIT
| Doc PR        |

Commits
-------

4c15f80d84 fix lexing nested sequences/mappings
2020-11-19 06:58:37 +01:00
Nicolas Grekas
bdfc20520e [DoctrineBridge] drop binary variants of UID types 2020-11-19 01:44:06 +01:00
Nicolas Grekas
0c92bc5a83 [HttpClient] don't fallback to HTTP/1.1 when HTTP/2 streams break 2020-11-19 01:16:06 +01:00
Wouter de Jong
e39e844606 Default to user provider, if available, in password upgrader 2020-11-18 22:00:38 +01:00
Alexander M. Turek
0302332238 Merge branch '5.1' into 5.2
* 5.1:
  do not depend on the actual time to fix a transient test
  Run Redis Sentinel tests in GithubAction
  Minor : Removed typo (extra "the" term)
  Check if method inheritEnvironmentVariables exists
  [PhpUnitBridge] Fix test fixture file name
2020-11-18 10:58:20 +01:00
Alexander M. Turek
3e90720bc1 Merge branch '4.4' into 5.1
* 4.4:
  do not depend on the actual time to fix a transient test
  Run Redis Sentinel tests in GithubAction
  Minor : Removed typo (extra "the" term)
  Check if method inheritEnvironmentVariables exists
  [PhpUnitBridge] Fix test fixture file name
2020-11-18 10:42:36 +01:00
Christian Flothmann
4c15f80d84 fix lexing nested sequences/mappings 2020-11-18 09:28:38 +01:00
Alexander M. Turek
1f0a27a732 Merge branch '3.4' into 4.4
* 3.4:
  Minor : Removed typo (extra "the" term)
  [PhpUnitBridge] Fix test fixture file name
2020-11-17 20:45:34 +01:00
Alexander M. Turek
218269e1e7 minor #39101 [HttpKernel] do not depend on the actual time to fix a transient test (xabbuh)
This PR was merged into the 4.4 branch.

Discussion
----------

[HttpKernel] do not depend on the actual time to fix a transient test

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

Commits
-------

b7e5c7d67d do not depend on the actual time to fix a transient test
2020-11-17 19:38:25 +01:00
Christian Flothmann
b7e5c7d67d do not depend on the actual time to fix a transient test 2020-11-17 19:23:54 +01:00
Christian Flothmann
e7698e7434 ignore the pattern attribute for textareas 2020-11-17 17:25:11 +01:00
Fabien Potencier
3eec466502 bug #39083 [Dotenv] Check if method inheritEnvironmentVariables exists (Chi-teck)
This PR was merged into the 4.4 branch.

Discussion
----------

[Dotenv] Check if method inheritEnvironmentVariables exists

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

Commits
-------

bd72a56505 Check if method inheritEnvironmentVariables exists
2020-11-17 06:58:42 +01:00
Fabien Potencier
728574d94f minor #39095 [Cache] Run Redis Sentinel tests in GithubAction (jderusse)
This PR was merged into the 4.4 branch.

Discussion
----------

[Cache] Run Redis Sentinel tests in GithubAction

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

Add support for Sentinel tests in GHA

Commits
-------

bd84394dc5 Run Redis Sentinel tests in GithubAction
2020-11-17 06:55:49 +01:00
Fabien Potencier
6564e0044d minor #39077 [PhpUnitBridge] Fix test fixture filename (fancyweb)
This PR was merged into the 3.4 branch.

Discussion
----------

[PhpUnitBridge] Fix test fixture filename

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

Fixes PHPUnit warning `Test case class not matching filename is deprecated`. I checked that the filename being different than the class name is not "required" for the test.

Commits
-------

c5a107e4cc [PhpUnitBridge] Fix test fixture file name
2020-11-17 06:50:42 +01:00
Alexander M. Turek
fb52afaf53 Merge branch '5.1' into 5.2
* 5.1:
  [Ldap] Fix undefined variable $con.
  Use GithubAction to run ldap tests
  Adds LDAP Adapter test in integration group
  Fix critical extension when reseting paged control
  Reinitialize globBrace after unserialization
2020-11-16 19:02:40 +01:00
Alexander M. Turek
e05dc00d99 Merge branch '4.4' into 5.1
* 4.4:
  [Ldap] Fix undefined variable $con.
2020-11-16 18:33:12 +01:00
Jérémy Derussé
bd84394dc5
Run Redis Sentinel tests in GithubAction 2020-11-16 18:15:10 +01:00
Alexander M. Turek
15da31686a [Ldap] Fix undefined variable $con. 2020-11-16 18:05:55 +01:00
Bruno Baguette
160cc6144c
Minor : Removed typo (extra "the" term) 2020-11-16 18:02:08 +01:00
Alexander M. Turek
3372b3ef96 Merge branch '4.4' into 5.1
* 4.4:
  Use GithubAction to run ldap tests
  Adds LDAP Adapter test in integration group
  Fix critical extension when reseting paged control
  Reinitialize globBrace after unserialization
2020-11-16 16:58:32 +01:00
Alexander M. Turek
55707fbcba minor #39030 [LDAP] Add ldap tests to github CI (lucasaba, jderusse)
This PR was merged into the 4.4 branch.

Discussion
----------

[LDAP] Add ldap tests to github CI

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

Adds LDAP test on github actions pipeline and corrects sum bugs in the LDAP Component test

It also adds a bug resolution from @Nek- made in #38875

Commits
-------

ea78f728b1 Use GithubAction to run ldap tests
af9562b12c Adds LDAP Adapter test in integration group
2020-11-16 16:51:33 +01:00
Jérémy Derussé
ea78f728b1
Use GithubAction to run ldap tests 2020-11-16 16:15:08 +01:00
Alexander M. Turek
cf70d3a180 bug #39091 [Config] Recheck glob brace support after GlobResource was serialized (wouterj)
This PR was merged into the 4.4 branch.

Discussion
----------

[Config] Recheck glob brace support after GlobResource was serialized

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

cc @bastnic

This bug was reported on Symfony Slack: `$this->globBrace` is set to `null` after unserialization from the `.meta` file.

Instead of serializing this property, I decided to reinitialize the property after unserialization. I think that's a safer option (e.g. it works when the cache is build on a different server with different globBrace support than the one running the application).

Commits
-------

d9534779cf Reinitialize globBrace after unserialization
2020-11-16 15:38:21 +01:00
Luca Saba
af9562b12c
Adds LDAP Adapter test in integration group
Adds ext-ldap on github-actions
2020-11-16 15:17:13 +01:00
Jérémy Derussé
a2b74762a6
Fix critical extension when reseting paged control 2020-11-16 12:50:58 +01:00
Wouter de Jong
d9534779cf Reinitialize globBrace after unserialization 2020-11-16 12:15:53 +01:00
Alexander M. Turek
5a9a7be6e5 Merge branch '5.1' into 5.2
* 5.1:
  remove unreachable code
  Update ExceptionEvent.php
  fix firebase transport factory DI tag type
  [HttpFoundation] Fix for virtualhosts based on URL path
2020-11-16 00:02:13 +01:00
Alexander M. Turek
a71bce881a Merge branch '4.4' into 5.1 2020-11-15 23:55:04 +01:00
Alexander M. Turek
091265bbbb bug #38614 [HttpFoundation] Fix for virtualhosts based on URL path (mvorisek)
This PR was merged into the 4.4 branch.

Discussion
----------

[HttpFoundation] Fix for virtualhosts based on URL path

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #34866
| License       | MIT
| Doc PR        | no

This PR fixes base URL detection when:
- virtualhost is based on URL path
- AND local path does not match that URL virtual host path prefix

fix covered with tests

Commits
-------

75ff86811f [HttpFoundation] Fix for virtualhosts based on URL path
2020-11-15 23:42:48 +01:00
Chi-teck
bd72a56505 Check if method inheritEnvironmentVariables exists 2020-11-14 17:10:20 +00:00
Fabien Potencier
1f4625053c minor #39080 [Yaml] remove unreachable code (xabbuh)
This PR was merged into the 4.4 branch.

Discussion
----------

[Yaml] remove unreachable code

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

mistakenly added in #33658

Commits
-------

5907444e81 remove unreachable code
2020-11-14 16:22:22 +01:00
Christian Flothmann
5907444e81 remove unreachable code 2020-11-14 15:49:24 +01:00
Robin Chalas
ec80507468 [Browserkit] Add changelog entry for request parameters string cast 2020-11-14 12:04:29 +01:00
Alexander M. Turek
13abe4822d bug #39070 [Validator] Remove IsinValidator's validator dependency (derrabus)
This PR was merged into the 5.2 branch.

Discussion
----------

[Validator] Remove IsinValidator's validator dependency

| Q             | A
| ------------- | ---
| Branch?       | 5.2
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #39069
| License       | MIT
| Doc PR        | N/A

Commits
-------

4cb7dec347 [Validator] Resolve IsinValidator's dependency on the validator.
2020-11-13 23:00:16 +01:00
Thomas Calvet
c5a107e4cc [PhpUnitBridge] Fix test fixture file name 2020-11-13 17:28:59 +01:00
Antoine Makdessi
4e45d2da3b
Update ExceptionEvent.php 2020-11-13 13:20:22 +01:00
Christian Flothmann
38145232ab fix firebase transport factory DI tag type 2020-11-13 12:10:43 +01:00
Christian Flothmann
cc130e1d9c Merge branch '5.1' into 5.2
* 5.1:
  prevent hash collisions caused by reused object hashes
  autoconfigure behavior describing tags on decorators
  [Validator][RecursiveContextualValidator] Prevent validated hash collisions
2020-11-13 10:44:33 +01:00
Christian Flothmann
355f18d34d Merge branch '4.4' into 5.1
* 4.4:
  prevent hash collisions caused by reused object hashes
  autoconfigure behavior describing tags on decorators
  [Validator][RecursiveContextualValidator] Prevent validated hash collisions
2020-11-13 10:37:26 +01:00
Christian Flothmann
c72f85333a bug #38387 [Validator] prevent hash collisions caused by reused object hashes (fancyweb, xabbuh)
This PR was merged into the 4.4 branch.

Discussion
----------

[Validator] prevent hash collisions caused by reused object hashes

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #36415
| License       | MIT
| Doc PR        |

Commits
-------

8dd1a6e545 prevent hash collisions caused by reused object hashes
9645fa39ec [Validator][RecursiveContextualValidator] Prevent validated hash collisions
2020-11-13 10:30:24 +01:00
Christian Flothmann
3834d76e11 bug #38999 [DependencyInjection] autoconfigure behavior describing tags on decorators (xabbuh)
This PR was merged into the 4.4 branch.

Discussion
----------

[DependencyInjection] autoconfigure behavior describing tags on decorators

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

Commits
-------

73a3b838b7 autoconfigure behavior describing tags on decorators
2020-11-13 10:27:22 +01:00
Christian Flothmann
8dd1a6e545 prevent hash collisions caused by reused object hashes 2020-11-13 10:14:12 +01:00
Christian Flothmann
73a3b838b7 autoconfigure behavior describing tags on decorators 2020-11-13 10:09:04 +01:00
Alexander M. Turek
4cb7dec347 [Validator] Resolve IsinValidator's dependency on the validator. 2020-11-13 00:06:46 +01:00
Alexander M. Turek
873b0b4f53 Merge branch '5.1' into 5.2
* 5.1:
  Add tests on CacheDataCollector
  [ProxyManagerBridge] fix tests
  [ProxyManagerBridge] relax fixture in tests
  Fix circular detection with multiple paths
2020-11-12 23:35:35 +01:00
Alexander M. Turek
b8afc7cba3 Merge branch '4.4' into 5.1
* 4.4:
  Add tests on CacheDataCollector
  [ProxyManagerBridge] fix tests
  [ProxyManagerBridge] relax fixture in tests
  Fix circular detection with multiple paths
2020-11-12 23:25:33 +01:00
Alexander M. Turek
038497cb80 minor #38898 [Cache] Add tests on CacheDataCollector (ScullWM)
This PR was merged into the 4.4 branch.

Discussion
----------

[Cache] Add tests on CacheDataCollector

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| License       | MIT
<!--
Replace this notice by a short README for your feature/bugfix. This will help people
understand your PR and can be used as a start for the documentation.

Additionally (see https://symfony.com/releases):
 - Always add tests and ensure they pass.
 - Never break backward compatibility (see https://symfony.com/bc).
 - Bug fixes must be submitted against the lowest maintained branch where they apply
   (lowest branches are regularly merged to upper ones so they get the fixes too.)
 - Features and deprecations must be submitted against branch 5.x.
-->

The `calculateStatistics()` method of `Symfony\Component\Cache\DataCollector\CacheDataCollector` contain a lot of logic and manipulate multi-dimensional array that could be refactor with VO.

But before doing this, I would add test on this part.

Commits
-------

7b4310f045 Add tests on CacheDataCollector
2020-11-12 17:05:23 +01:00
Thomas P
7b4310f045 Add tests on CacheDataCollector 2020-11-12 16:25:20 +01:00
Nicolas Grekas
ecf9859609 [ProxyManagerBridge] fix tests 2020-11-12 14:19:35 +01:00
Nicolas Grekas
47041370c0 [ProxyManagerBridge] relax fixture in tests 2020-11-12 13:55:13 +01:00
Alexander M. Turek
faead9574a bug #39058 [DependencyInjection] Fix circular detection with multiple paths (jderusse)
This PR was merged into the 4.4 branch.

Discussion
----------

[DependencyInjection] Fix circular detection with multiple paths

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

There are currently 2 kind of issues related to the Dependency Injection:

1. performance issue when project contains many loops (#37850)
Which has been fixed by #38882

2. Infinity loop in some case (#38970)
Which has been fixed by #38980 and #39021

The new issue #39056 has been introduced by #38882 (The performance issue refactor) because in order to optimize loop detection, I take a short cut and choose to not collect ALL the circular loop but only the one that matters

I was wrong. All loops matters.

This PR fix my previous refacto to collect ALL the paths, with a low CPU footprint

Commits
-------

1c3721e8ad Fix circular detection with multiple paths
2020-11-12 11:26:24 +01:00
Jérémy Derussé
fcc832b720
Merge branch '5.1' into 5.2
* 5.1:
  [Filesystem] fix cleaning up tmp files when dumpFile() fails
  [MimeType] Add missing alias for @mime_type
2020-11-12 11:05:01 +01:00
Jérémy Derussé
9bff2e7aed
Merge branch '4.4' into 5.1
* 4.4:
  [Filesystem] fix cleaning up tmp files when dumpFile() fails
  [MimeType] Add missing alias for @mime_type
2020-11-12 10:58:18 +01:00
Jérémy Derussé
4bb1229261
minor #39047 [MimeType] Add missing alias for service @mime_type (Nyholm)
This PR was merged into the 4.4 branch.

Discussion
----------

[MimeType] Add missing alias for service @mime_type

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

I found that this was missing. Im not sure why these have not been added before. Was it intentional?

Commits
-------

7b733d651d [MimeType] Add missing alias for @mime_type
2020-11-12 10:56:29 +01:00
Thomas Calvet
9645fa39ec [Validator][RecursiveContextualValidator] Prevent validated hash collisions 2020-11-12 09:33:23 +01:00
Nicolas Grekas
33fce73bdf [Filesystem] fix cleaning up tmp files when dumpFile() fails 2020-11-11 23:20:15 +01:00
Jérémy Derussé
1c3721e8ad
Fix circular detection with multiple paths 2020-11-11 19:26:13 +01:00
Nyholm
7b733d651d
[MimeType] Add missing alias for @mime_type 2020-11-10 15:45:35 +01:00
Fabien Potencier
5b3976a888 Bump Symfony version to 5.2.0 2020-11-10 09:06:25 +01:00
Fabien Potencier
f33a0d355b Update VERSION for 5.2.0-RC1 2020-11-10 08:54:37 +01:00
Fabien Potencier
c721e025ea bug #39004 [Messenger] Fix JSON deserialization of ErrorDetailsStamp and normalization of FlattenException::$statusText (Jean85)
This PR was squashed before being merged into the 5.2-dev branch.

Discussion
----------

[Messenger] Fix JSON deserialization of ErrorDetailsStamp and normalization of FlattenException::$statusText

| Q             | A
| ------------- | ---
| Branch?       | 5.x (bugfix of a 5.x-only feature)
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #39003
| License       | MIT

~WIP~ This is now complete and, thanks to @yceruto, I've fixed two bugs in this PR:
 * `ErrorDetailsStamp` couldn't be (de)serialized properly with that constructor argument
 * `FlattenException::$statusText` wasn't (de)normalized

Commits
-------

9af554cb41 [Messenger] Fix JSON deserialization of ErrorDetailsStamp and normalization of FlattenException::$statusText
2020-11-10 07:17:29 +01:00
Alessandro Lai
9af554cb41 [Messenger] Fix JSON deserialization of ErrorDetailsStamp and normalization of FlattenException::$statusText 2020-11-10 07:17:22 +01:00
Christian Flothmann
a9895ea72b Merge branch '5.1' into 5.x
* 5.1:
  failing test for issue 38861
  [DoctrineBridge]  indexBy could reference to association columns
2020-11-09 20:34:12 +01:00
Christian Flothmann
05e944b9e5 Merge branch '4.4' into 5.1
* 4.4:
  failing test for issue 38861
  [DoctrineBridge]  indexBy could reference to association columns
2020-11-09 20:27:47 +01:00
Christian Flothmann
cdfa9c2d8b Merge branch '3.4' into 4.4
* 3.4:
  failing test for issue 38861
  [DoctrineBridge]  indexBy could reference to association columns
2020-11-09 20:21:10 +01:00
Bart Wach
f9a0e000e9 failing test for issue 38861 2020-11-09 18:46:57 +01:00
Juan Miguel Besada
4c36145664 [DoctrineBridge] indexBy could reference to association columns 2020-11-09 18:41:59 +01:00
Fabien Potencier
2994ef0e1a Merge branch '5.1' into 5.x
* 5.1:
  Optimize circular collection by removing flattening
2020-11-09 13:21:52 +01:00
Fabien Potencier
382d6fc696 Merge branch '4.4' into 5.1
* 4.4:
  Optimize circular collection by removing flattening
2020-11-09 13:21:43 +01:00
Fabien Potencier
0ae674a29a bug #39021 [DependencyInjection] Optimize circular collection by removing flattening (jderusse)
This PR was merged into the 4.4 branch.

Discussion
----------

 [DependencyInjection] Optimize circular collection by removing flattening

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

Alternative to #39019

Commits
-------

e649f47726 Optimize circular collection by removing flattening
2020-11-09 13:20:23 +01:00
Jérémy Derussé
e649f47726
Optimize circular collection by removing flattening 2020-11-09 12:28:57 +01:00
Fabien Potencier
47c2764064 Merge branch '5.1' into 5.x
* 5.1:
  also reset id readers
  Fix LDAP pagination
2020-11-09 11:58:06 +01:00
Fabien Potencier
64089870ce Merge branch '4.4' into 5.1
* 4.4:
  also reset id readers
  Fix LDAP pagination
2020-11-09 11:57:52 +01:00
Fabien Potencier
46410f876e bug #39031 [Ldap] Fix pagination (jderusse)
This PR was merged into the 4.4 branch.

Discussion
----------

[Ldap] Fix pagination

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

This replaces #38875 to fix a bug introduced by #38392

Commits
-------

4fe0a6f2b9 Fix LDAP pagination
2020-11-09 11:55:57 +01:00
Fabien Potencier
dfe60bb8a4 minor #39029 Adds constants for YamlEncoder options (dbrumann)
This PR was merged into the 5.2-dev branch.

Discussion
----------

Adds constants for YamlEncoder options

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

As I understand it encoders and normalizers use (public) constants for context keys so IDEs can help by providing autocomplete. I added these constants for the YamlEncoder where they are missing right now. For reference see other encoders like CsvEncoder or XmlEncoder.

Commits
-------

6ebf7e164e Adds constants for YamlEncoder options
2020-11-09 11:52:36 +01:00
Christian Flothmann
784bd0080d also reset id readers 2020-11-09 09:59:19 +01:00
Denis Brumann
6ebf7e164e
Adds constants for YamlEncoder options 2020-11-08 12:35:30 +01:00
Alexander M. Turek
441c80603e [Validator] Allow load mappings from attributes without doctrine/annotations. 2020-11-07 22:48:53 +01:00
Jérémy Derussé
4fe0a6f2b9
Fix LDAP pagination 2020-11-07 21:18:28 +01:00
Alexander M. Turek
7b4d22f8d0 feature #39022 [FrameworkBundle] Allow to use attribute-based configuration of routing/serializer without doctrine/annotations (derrabus)
This PR was merged into the 5.2-dev branch.

Discussion
----------

 [FrameworkBundle] Allow to use attribute-based configuration of routing/serializer without doctrine/annotations

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

Follows #37474, #38525

Currently, we need `doctrine/annotations` to be installed in order to configure routing and serializer via PHP attributes. Given that for both components we can already replace Doctrine Annotations completely, I'd like to get rid of that limitation.

Commits
-------

e5492e2e55 [FrameworkBundle] Configure PHP Attributes without doctrine/annotations.
2020-11-07 20:25:59 +01:00
Maxime Steinhausser
50c7c3d364 bug #39002 [Validator] Override the default option of the choice constraint (benji07)
This PR was merged into the 5.2-dev branch.

Discussion
----------

[Validator] Override the default option of the choice constraint

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

We have a bundle that run test against the last version of symfony and we detect BC Break when passing a string as the first argument of the class Choice

Our code extends the Choice class and change the defaultOption.

I saw that others constraints class had new construct signature (for php8 attributes), but only some of them kept the array options as their first arguments. Why ?

ping @ogizanagi @derrabus

https://travis-ci.com/github/Elao/PhpEnums/jobs/410045368
```
1) Elao\Enum\Tests\Unit\Bridge\Symfony\Validator\Constraint\EnumTest::testDefaultValueIsEnumClass
Symfony\Component\Validator\Exception\MissingOptionsException: The options "class" must be set for constraint "Elao\Enum\Bridge\Symfony\Validator\Constraint\Enum".
/home/travis/build/Elao/PhpEnums/vendor/symfony/symfony/src/Symfony/Component/Validator/Constraint.php:171
/home/travis/build/Elao/PhpEnums/vendor/symfony/symfony/src/Symfony/Component/Validator/Constraint.php:110
/home/travis/build/Elao/PhpEnums/vendor/symfony/symfony/src/Symfony/Component/Validator/Constraints/Choice.php:75
/home/travis/build/Elao/PhpEnums/src/Bridge/Symfony/Validator/Constraint/Enum.php:39
/home/travis/build/Elao/PhpEnums/tests/Unit/Bridge/Symfony/Validator/Constraint/EnumTest.php:22
```

Commits
-------

d553750054 Allow user to override default options when extending the Choice Constraint
2020-11-07 17:47:31 +01:00
Robin Chalas
f226d981af Merge branch '5.1' into 5.x
* 5.1:
  [Messenger] Fix DBAL deprecations in PostgreSQLConnection
  [DoctrineBridge] Fix DBAL deprecations in middlewares.
2020-11-07 17:24:48 +01:00
Robin Chalas
245d04189e Merge branch '4.4' into 5.1
* 4.4:
  [DoctrineBridge] Fix DBAL deprecations in middlewares.
2020-11-07 17:24:27 +01:00
Benjamin Lévêque
d553750054 Allow user to override default options when extending the Choice Constraint
Co-authored-by: Maxime Steinhausser <maxime.steinhausser@gmail.com>
2020-11-07 17:03:44 +01:00
Robin Chalas
bc42cf604e [Messenger] Fix DBAL deprecations in PostgreSQLConnection 2020-11-07 15:49:46 +01:00
Alexander M. Turek
969da48c98 [DoctrineBridge] Fix DBAL deprecations in middlewares. 2020-11-07 15:21:55 +01:00
Alexander M. Turek
e5492e2e55 [FrameworkBundle] Configure PHP Attributes without doctrine/annotations. 2020-11-07 14:02:47 +01:00
Alexander M. Turek
5c5b8d61ee Merge branch '5.1' into 5.x 2020-11-07 14:01:53 +01:00
Alexander M. Turek
8c81f33840 Merge branch '4.4' into 5.1 2020-11-07 14:01:26 +01:00
Fabien Potencier
be8fd560e3 minor #39017 [ProxyManagerBridge] replace ProxyManager\Version by feature detection (nicolas-grekas)
This PR was merged into the 4.4 branch.

Discussion
----------

[ProxyManagerBridge] replace ProxyManager\Version by feature detection

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

I'd like to get rid of this `Version` class, which is the source of so many issues with deps.
This won't remove the class from ocramius/proxy-manager, but that's a separate story that this change could enable in the end :)

Commits
-------

5f77aad6ca [ProxyManagerBridge] replace ProxyManager\Version by feature detection
2020-11-06 17:37:15 +01:00
Nicolas Grekas
5f77aad6ca [ProxyManagerBridge] replace ProxyManager\Version by feature detection 2020-11-06 15:18:27 +01:00
Nyholm
0ab3032c52
[CI] Fixed invalid doctrine parameter syntax 2020-11-05 21:54:48 +01:00
Robin Chalas
2c39acd159 fix merge 2020-11-05 21:41:09 +01:00
Alexander M. Turek
5f25a6f980 Merge branch '5.1' into 5.x 2020-11-05 21:05:54 +01:00
Alexander M. Turek
2081035295 Merge branch '4.4' into 5.1 2020-11-05 20:04:46 +01:00
Robin Chalas
75f8ac1e9b bug #38991 [Console] Fix ANSI when stdErr is not a tty (jderusse)
This PR was merged into the 4.4 branch.

Discussion
----------

[Console] Fix ANSI when stdErr is not a tty

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

Taking the @wouterj 's comment into account (https://github.com/symfony/symfony/issues/38981#issuecomment-721915428)

This PR prevents using the same Formatter for stdOut and stdErr when possible.

When user send a custom formatter (or call `setFormatter`) the previous logic is kept.
Otherwise, symfony is asked to create the Formatter, and thus is able to clone the formatter.

In a future PR targeting 5.3, we could improve the constructor to let people inject 2 distinguished formatters

Commits
-------

f3a398b5af Fix ANSI when stdErr is not a tty
2020-11-05 16:22:05 +01:00
Nicolas Grekas
61b3872b65 bug #38980 [DependencyInjection] Fix circular reference with Factory + Lazy Iterrator (jderusse)
This PR was merged into the 4.4 branch.

Discussion
----------

[DependencyInjection] Fix circular reference with Factory + Lazy Iterrator

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

The issue, occurs when a `factory` iterates over services (think tagged iterator) that also need the `factory`.
The PhpDumper is not able to detect the loop because the TaggedService iterator is flaged as "lazy" which is ignored in the loop detection. 2d7e0b02c6/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php (L474-L476)

See test case for a reproduce case.

This PR takes into account lazy services when computing loops.

I'm not sure this is the right thing to do /cc @nicolas-grekas .
A better solution could be to do this ONLY when the service is used as a factory?

Commits
-------

51ff060603 Fix circular referene with Factory and LazyIterator
2020-11-05 12:51:33 +01:00
Jérémy Derussé
f3a398b5af
Fix ANSI when stdErr is not a tty 2020-11-05 10:51:39 +01:00
Alexander M. Turek
60e506835a [Security] Fix docblock. 2020-11-05 00:24:50 +01:00
Jérémy Derussé
51ff060603
Fix circular referene with Factory and LazyIterator 2020-11-04 15:21:44 +01:00
Nicolas Grekas
20714d66c9 [DoctrineBridge] accept converting Uid-as-strings to db-values 2020-11-04 12:11:20 +01:00
Fabien Potencier
57e39b41b9 feature #38850 [Messenger] Do not call getQueueUrl when the url is known in AmazonSqs transport (jderusse)
This PR was merged into the 5.2-dev branch.

Discussion
----------

[Messenger] Do not call getQueueUrl when the url is known in AmazonSqs transport

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

When user provides a DSN that looks like a queueUrl, we don't need to call the `getQueueUrl` method. This PR inject the known queueUrl and prevent performing a useless call to the API when sending a message

Commits
-------

f1f44d48e0 Do not call getQueueUrl when the url is known
2020-11-04 08:24:27 +01:00
Fabien Potencier
d2bac32525 feature #38940 [Messenger] Improve formatting of exception in failed message (Jeroen Noten)
This PR was merged into the 5.2-dev branch.

Discussion
----------

[Messenger] Improve formatting of exception in failed message

| Q             | A
| ------------- | ---
| Branch?       | 5.x
| Bug fix?      | no
| New feature?  | not really, enhancement of an existing feature
| Deprecations? | no
| Tickets       | Fix #32310
| License       | MIT

This PR improves the formatting of exception details in failed messenges when displayed using `messenger:failed:show <id> -vv`.

Before:
<img width="807" alt="Screen Shot 2020-11-01 at 1 05 24 PM" src="https://user-images.githubusercontent.com/4370753/97802602-ea593200-1c44-11eb-8bcb-7fcf2d3f1db0.png">

After:
<img width="803" alt="Screen Shot 2020-11-01 at 1 03 09 PM" src="https://user-images.githubusercontent.com/4370753/97802615-f0e7a980-1c44-11eb-8c12-46b2d4510364.png">

I created a `ThrownExceptionDetails` class which will be displayed as a normal exception when dumped with the VarDumper component. Not sure if this is the right way to do it and if the class is in the right namespace, but this is the best solution I could came up with to fix #32310. I'm open for other suggestions.

Commits
-------

2ad1adda69 [Messenger] Improve formatting of thrown exception in show failed message command
2020-11-04 08:21:06 +01:00
Fabien Potencier
6251c4ee6e feature #38954 [HttpFundation][FrameworkBundle] Deprecate the HEADER_X_FORWARDED_ALL constant (jderusse)
This PR was merged into the 5.2-dev branch.

Discussion
----------

[HttpFundation][FrameworkBundle] Deprecate the HEADER_X_FORWARDED_ALL constant

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

The `HEADER_X_FORWARDED_ALL` implicitly trust the `x-forwarded-host` header, leading to possible host header attack (as warned in the [documentation](https://symfony.com/doc/current/reference/configuration/framework.html#trusted-hosts).)

Moreover, this `HEADER_X_FORWARDED_ALL` does not really fowards **all** headers, as ti does not supports `X-Forwarded-Prefix` headers.

This PR deprecate the constant and the new framework bundle configuration. It will be removed in 6.0. People have to use: either:
- `Request::setTrustedProxies(['1.2.3.4'], Request::HEADER_X_FORWARDED_FOR | Request::HEADER_X_FORWARDED_HOST | Request::HEADER_X_FORWARDED_PORT | Request::HEADER_X_FORWARDED_PROTO);`
- `Request::setTrustedProxies(['1.2.3.4'], Request::HEADER_X_FORWARDED_TRAEFIK);`
- `framework.trusted_headers: [x-forwarded-for, x-forwarded-host, x-forwarded-port, x-forwarded-proto]`

Commits
-------

7cf4dd6917 Deprecate HEADER_X_FORWARDED_ALL constant
2020-11-04 08:16:55 +01:00
Nicolas Grekas
ff7ffdf22a bug #38977 [HttpClient] Check status code before decoding content in TraceableResponse (chalasr)
This PR was merged into the 5.1 branch.

Discussion
----------

[HttpClient] Check status code before decoding content in TraceableResponse

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

Using `toArray()` on the response of a traceable client, the status code is currently checked after json decoding, which leads to `JsonException` being thrown instead of `ClientException`.
It should be the opposite, as for non-traceable responses.

Commits
-------

e5595dae73 [HttpClient] Check status code before decoding content in TraceableResponse
2020-11-03 21:22:18 +01:00
Robin Chalas
e5595dae73 [HttpClient] Check status code before decoding content in TraceableResponse 2020-11-03 21:20:54 +01:00
Thomas Lallement
3dd385f319
Rename security.pt_PT.xlf to security.pt.xlf 2020-11-03 17:58:31 +01:00
Jeroen Noten
2ad1adda69 [Messenger] Improve formatting of thrown exception in show failed message command 2020-11-03 13:22:22 +01:00
Nicolas Grekas
2d7e0b02c6 Merge branch '5.1' into 5.x
* 5.1:
  fix typo
2020-11-03 13:14:28 +01:00
Nicolas Grekas
4541862a12 Merge branch '4.4' into 5.1
* 4.4:
  fix typo
2020-11-03 13:14:22 +01:00
Nicolas Grekas
6fe261a7ae fix typo 2020-11-03 13:14:11 +01:00
Nicolas Grekas
1cfd3ab03a Merge branch '5.1' into 5.x
* 5.1:
  [PhpUnitBridge] fix replaying skipped tests
  Switch nightly run to 8.0snapshot
2020-11-03 12:59:38 +01:00
Nicolas Grekas
298422c844 Merge branch '4.4' into 5.1
* 4.4:
  [PhpUnitBridge] fix replaying skipped tests
  Switch nightly run to 8.0snapshot
2020-11-03 12:59:17 +01:00
Michael Voříšek
75ff86811f [HttpFoundation] Fix for virtualhosts based on URL path 2020-11-03 12:58:18 +01:00
Nicolas Grekas
703497dccf bug #38971 [PhpUnitBridge] fix replaying skipped tests (nicolas-grekas)
This PR was merged into the 4.4 branch.

Discussion
----------

[PhpUnitBridge] fix replaying skipped tests

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

Spotted while working on https://github.com/symfony/polyfill/pull/310

See also https://3v4l.org/D6Gro for the newly skipped tests in symfony/intl

Commits
-------

849d1b3845 [PhpUnitBridge] fix replaying skipped tests
2020-11-03 12:57:46 +01:00
Nicolas Grekas
849d1b3845 [PhpUnitBridge] fix replaying skipped tests 2020-11-03 12:50:26 +01:00
Jérémy Derussé
d658164b7f
minor #38941 [FrameworkBundle] Register AddErrorDetailsStampListener from the Messenger component as event subscriber (Jeroen Noten)
This PR was merged into the 5.2-dev branch.

Discussion
----------

[FrameworkBundle] Register AddErrorDetailsStampListener from the Messenger component as event subscriber

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

This is a fix for a bug in version 5.2-BETA3.

In #32904, adding the error details to a failed message in the Messenger component was moved to a separate listener. However, this listener is not registered in the FrameworkBundle, resulting in no error details stored at all (when using the Symfony skeleton). This PR adds that missing registration.

Commits
-------

deda2ac411 [FrameworkBundle] Register AddErrorDetailsStampListener from the Messenger component as event subscriber
2020-11-03 01:02:05 +01:00
Jérémy Derussé
0dfbeb4e1e
minor #38842 [Notifier] Add unit tests for NullMessage, NullTransport and NullTransportFactory (jschaedl)
This PR was merged into the 5.2-dev branch.

Discussion
----------

[Notifier] Add unit tests for NullMessage, NullTransport and NullTransportFactory

| Q             | A
| ------------- | ---
| Branch?       | 5.x
| Bug fix?      | no
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | - <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License       | MIT
| Doc PR        | - <!-- required for new features -->
<!--
Replace this notice by a short README for your feature/bugfix. This will help people
understand your PR and can be used as a start for the documentation.

Additionally (see https://symfony.com/releases):
 - Always add tests and ensure they pass.
 - Never break backward compatibility (see https://symfony.com/bc).
 - Bug fixes must be submitted against the lowest maintained branch where they apply
   (lowest branches are regularly merged to upper ones so they get the fixes too.)
 - Features and deprecations must be submitted against branch 5.x.
-->

Commits
-------

8a78dc2c97 [Notifier] Add unit tests for NullMessage, NullTransport and NullTransportFactory
2020-11-03 00:56:53 +01:00
Jan Schädlich
8a78dc2c97
[Notifier] Add unit tests for NullMessage, NullTransport and NullTransportFactory 2020-11-03 00:54:11 +01:00
Jérémy Derussé
7cf4dd6917
Deprecate HEADER_X_FORWARDED_ALL constant 2020-11-02 17:16:33 +01:00
Nicolas Grekas
6ddb93df1f Merge branch '5.1' into 5.x
* 5.1:
  [HttpKernel] fix merge
2020-11-02 17:09:19 +01:00
Nicolas Grekas
f0d9eeb257 Merge branch '4.4' into 5.1
* 4.4:
  [HttpKernel] fix merge
2020-11-02 17:09:08 +01:00
Nicolas Grekas
76c19393c8 [HttpKernel] fix merge 2020-11-02 17:06:19 +01:00
Nicolas Grekas
5bf6bbe96c Merge branch '5.1' into 5.x
* 5.1:
  [Process] Dont test TTY if there is no TTY support
  Fixing some Mongolian
  translating the validators for european portuguese language
  Fix CI
  Update validators.he.xlf
  Update security.he.xlf
  Update validators.he.xlf
  Improve performances in CircualReference detection
  [PHPUnitBridge] Fixed crash on Windows with PHP 8
  Fix session called initized several time
2020-11-02 16:47:15 +01:00
Nicolas Grekas
aae9211e7c Merge branch '4.4' into 5.1
* 4.4:
  [Process] Dont test TTY if there is no TTY support
  Fixing some Mongolian
  translating the validators for european portuguese language
  Fix CI
  Update validators.he.xlf
  Update security.he.xlf
  Update validators.he.xlf
  Improve performances in CircualReference detection
  [PHPUnitBridge] Fixed crash on Windows with PHP 8
  Fix session called initized several time
2020-11-02 16:45:32 +01:00
Nicolas Grekas
5831ab2b62 bug #38910 [HttpKernel] Fix session initialized several times (jderusse)
This PR was merged into the 4.4 branch.

Discussion
----------

[HttpKernel] Fix session initialized several times

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

The session injected in the request is a factory. When the request is **cloned** (ie sub-request) while the session is not yet used in the master request (the session is still a factory), both Master and Sub request will have a factory.
If both requests attempt to read the session afterward, they both triggers the factory, and both initialize the session.

It's not a dead end for the `SessionListener` because the session come from the container and is shared, but:
- the session is initialized ($storage->setOptions(['cookie_secure' => true])) twice
- if we replace the sesssion from container to a factory, it could be an issue

Commits
-------

30a3c7c87b Fix session called initized several time
2020-11-02 16:36:10 +01:00
Nicolas Grekas
8375eeef67 bug #38882 [DependencyInjection] Improve performances in CircualReference detection (jderusse)
This PR was merged into the 4.4 branch.

Discussion
----------

[DependencyInjection] Improve performances in CircualReference detection

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

This PR change the way circular references are detected.  And improve the project submitted in #37850 [by **86%**](https://blackfire.io/profiles/compare/cc4aa41d-5b63-4caa-9a1b-fc282dc5d64a/graph) (Build the container in 1.1 sec instead of 10)

Issue is: When a project contains a lot Circular Reference, the Dumper [spend a lot of time](https://blackfire.io/profiles/54f6eba2-b93c-4f2b-a268-1e58883faecb/graph) in merging those circular references.
note: a circular reference is not an issue when an service is not injected by constructor, but this Can not be known until all references are resolved (performed previously by connectCircularReferences)

This PR removed the connectCircularReferences and generate a flatten tree of dependencies:
 - the key is the service ID
 - the value is the list of direct **AND** indirect dependency + path to join the dependency

I also [benched the PR with a project with few references](https://blackfire.io/profiles/compare/2f9902e6-3347-40b3-8421-e1fd09c067d2/graph) and result are almost the same before/after.

Commits
-------

d4db75692b Improve performances in CircualReference detection
2020-11-02 16:10:49 +01:00
Nicolas Grekas
ed217a1435 bug #38950 [Process] Dont test TTY if there is no TTY support (Nyholm)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[Process] Dont test TTY if there is no TTY support

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

Commits
-------

e918e5ab30 [Process] Dont test TTY if there is no TTY support
2020-11-02 16:10:23 +01:00
Nyholm
e918e5ab30 [Process] Dont test TTY if there is no TTY support 2020-11-02 16:10:16 +01:00
Nicolas Grekas
ca9ef822cf bug #38921 [PHPUnitBridge] Fixed crash on Windows with PHP 8 (villfa)
This PR was merged into the 4.4 branch.

Discussion
----------

[PHPUnitBridge] Fixed crash on Windows with PHP 8

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

The install command crashed with the message "The filename, directory name, or volume label syntax is incorrect.".
It happens only on Windows with PHP 8.

Probably due to https://github.com/php/php-src/blob/PHP-8.0/UPGRADING#L1121-L1123

I have a small repo to show the problem and how it is fixed: https://github.com/villfa/test-phpunit-bridge

Commits
-------

4b958917fd [PHPUnitBridge] Fixed crash on Windows with PHP 8
2020-11-02 16:07:32 +01:00
Nicolas Grekas
cd53800026 minor #38917 Fixing some Mongolian (Nyholm)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

Fixing some Mongolian

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

Hey @luffy1727, could you help me with the last two strings here?

Commits
-------

5c848d9796 Fixing some Mongolian
2020-11-02 16:02:38 +01:00
Nyholm
5c848d9796 Fixing some Mongolian 2020-11-02 16:02:29 +01:00
Bruno Araujo
c0524197a0 translating the validators for european portuguese language 2020-11-02 16:00:21 +01:00
Ben Hakim
b99977efce
Update validators.he.xlf 2020-11-02 16:11:24 +02:00
Alexander M. Turek
ba7c60b745 minor #38961 Update validators.he.xlf (ben29)
This PR was merged into the 4.4 branch.

Discussion
----------

Update validators.he.xlf

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

Commits
-------

98a7e8e150 Update validators.he.xlf
2020-11-02 15:00:41 +01:00
Ben Hakim
c8ab10f427
Update security.he.xlf 2020-11-02 15:41:03 +02:00
Ben Hakim
98a7e8e150
Update validators.he.xlf 2020-11-02 15:36:19 +02:00
Alexander M. Turek
12a617f2ea Merge branch '5.1' into 5.x 2020-11-02 09:16:52 +01:00
Alexander M. Turek
8d964bda5b Merge branch '4.4' into 5.1 2020-11-02 08:55:38 +01:00