Commit Graph

53911 Commits

Author SHA1 Message Date
Nicolas Grekas
4a125a856f Merge branch '4.4' into 5.2
* 4.4:
  Fix some typos in Greek language
2021-06-17 14:33:21 +02:00
Nicolas Grekas
9399e2c72d bug #41616 [Messenger] Remove TLS related options when not using TLS (odolbeau)
This PR was merged into the 5.2 branch.

Discussion
----------

[Messenger] Remove TLS related options when not using TLS

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

Remove TLS related options when not using TLS to connect to a broker.

The goal is to be able to use the same configuration for both `amqp://` & `amqps://` DSN.

Currently, when using a configuration containing a `cacert` key with a non-TLS DSN will throw a `AMQPConnectionException` (Socket error: could not connect to host.)

Configuration example:
```yaml
framework:
    messenger:
        transports:
            async:
              dsn: '%env(MESSENGER_TRANSPORT_DSN)%'
              options:
                cacert: '%kernel.project_dir%/amqp_cacert.pem'
```

Commits
-------

37e602dd28 Remove TLS related options when not using TLS
2021-06-17 14:21:31 +02:00
Nicolas Grekas
a026c672e7 bug #41719 [FrameworkBundle] fix Could not find service "test.service_container" (smilesrg)
This PR was merged into the 5.2 branch.

Discussion
----------

[FrameworkBundle] fix Could not find service "test.service_container"

| Q             | A
| ------------- | ---
| Branch?       |  5.2, needs to be ported to 5.3
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #41715
| License       | MIT

Partial backport of https://github.com/symfony/symfony/pull/41530
Related to https://github.com/symfony/symfony/issues/41715 and https://github.com/symfony/symfony/pull/41530

When launching phpunit, got an error:
`LogicException: Could not find service "test.service_container". Try updating the "framework.test" config to "true".`

```
There was 1 error:

1) App\Symfony\Bundle\Tests\Integration\IntegrationTest::testServiceWiringWithConfiguration
LogicException: Could not find service "test.service_container". Try updating the "framework.test" config to "true".

/Projects/app/vendor/symfony/framework-bundle/Test/KernelTestCase.php:109
/Projects/app/tests/integration/IntegrationTest.php:23

Caused by
Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "test.service_container". Did you mean this: "service_container"?

/Projects/app/vendor/symfony/dependency-injection/Container.php:280
/Projects/app/vendor/symfony/dependency-injection/Container.php:228
/Projects/app/vendor/symfony/framework-bundle/Test/KernelTestCase.php:107
/Projects/app/tests/integration/IntegrationTest.php:23
```

/cc `@xabbuh`  `@nicolas`-grekas

Commits
-------

0748b5247e bug #41715: [FrameworkBundle] Partial backport of PR#41530
2021-06-17 14:08:19 +02:00
Nyholm
ffb0d2d424
minor #41712 [Validator] Fix some typos in Greek language (simplegr)
This PR was merged into the 4.4 branch.

Discussion
----------

[Validator] Fix some typos in Greek language

| 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

Fix some typos in Greek language

Commits
-------

8df2ea12d3 Fix some typos in Greek language
2021-06-16 16:15:28 +02:00
Serhii Smirnov
0748b5247e bug #41715: [FrameworkBundle] Partial backport of PR#41530
https://github.com/symfony/symfony/issues/41715
https://github.com/symfony/symfony/pull/41530
2021-06-16 00:11:27 +03:00
George Yiannoulopoulos
8df2ea12d3
Fix some typos in Greek language 2021-06-15 11:42:13 +03:00
Nicolas Grekas
8b2ee3138b Merge branch '4.4' into 5.2
* 4.4:
  [Config] fix tracking attributes in ReflectionClassResource
  [Process] Fix incorrect parameter type
  [HttpFoundation] Handle tentative return types
2021-06-12 12:15:01 +02:00
Nicolas Grekas
a04effad3f bug #41674 [HttpClient] fix compat with cURL <= 7.37 (nicolas-grekas)
This PR was merged into the 5.2 branch.

Discussion
----------

[HttpClient] fix compat with cURL <= 7.37

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

Commits
-------

d8adf5101a [HttpClient] fix compat with cURL <= 7.37
2021-06-12 11:00:02 +02:00
Nicolas Grekas
d8adf5101a [HttpClient] fix compat with cURL <= 7.37 2021-06-12 10:58:29 +02:00
Robin Chalas
610b51d65a
minor #41679 Remove Debug component from patch-types.php (fancyweb)
This PR was merged into the 5.2 branch.

Discussion
----------

Remove Debug component from patch-types.php

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

Commits
-------

ce8ee160d0 Remove Debug component from patch-types.php
2021-06-11 15:38:20 +02:00
Thomas Calvet
ce8ee160d0 Remove Debug component from patch-types.php 2021-06-11 15:06:13 +02:00
Nicolas Grekas
5b21ce2642 bug #41656 [HttpClient] throw exception when AsyncDecoratorTrait gets an already consumed response (nicolas-grekas)
This PR was merged into the 5.2 branch.

Discussion
----------

[HttpClient] throw exception when AsyncDecoratorTrait gets an already consumed response

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

Commits
-------

38dae138fd [HttpClient] throw exception when AsyncDecoratorTrait gets an already consumed response
2021-06-11 11:55:27 +02:00
Nicolas Grekas
38dae138fd [HttpClient] throw exception when AsyncDecoratorTrait gets an already consumed response 2021-06-11 11:53:21 +02:00
Alexander M. Turek
0fa07c6d7c bug #41644 [Config] fix tracking attributes in ReflectionClassResource (nicolas-grekas)
This PR was merged into the 4.4 branch.

Discussion
----------

[Config] fix tracking attributes in ReflectionClassResource

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

Commits
-------

7ad8247422 [Config] fix tracking attributes in ReflectionClassResource
2021-06-10 17:19:12 +02:00
Nicolas Grekas
7ad8247422 [Config] fix tracking attributes in ReflectionClassResource 2021-06-09 17:56:09 +02:00
Nicolas Grekas
dd2e6059b5 bug #41621 [Process] Fix incorrect parameter type (bch36)
This PR was submitted for the 5.4 branch but it was squashed and merged into the 4.4 branch instead.

Discussion
----------

[Process] Fix incorrect parameter type

In the affected line of code, fclose() should ONLY be passed a parameter of type resource, but fopen() can return a value of type bool (if the fopen() fails). This results in a fatal error under PHP 8: Fatal error: Uncaught TypeError: fclose(): Argument #1 ($stream) must be of type resource, bool given.

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

Commits
-------

d1579a2922 [Process] Fix incorrect parameter type
2021-06-09 16:59:17 +02:00
bch36
d1579a2922 [Process] Fix incorrect parameter type 2021-06-09 16:57:04 +02:00
Nicolas Grekas
c17ed9ee5d minor #41626 [HttpFoundation] Handle new tentative return types (derrabus)
This PR was merged into the 4.4 branch.

Discussion
----------

[HttpFoundation] Handle new tentative return types

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

Commits
-------

1d24bce18f [HttpFoundation] Handle tentative return types
2021-06-09 16:52:47 +02:00
Nicolas Grekas
05a7020f4b minor #41636 [Validator] Fix tests by making constraint options dumps order consistent (alexandre-daubois)
This PR was merged into the 5.2 branch.

Discussion
----------

[Validator] Fix tests by making constraint options dumps order consistent

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

Commits
-------

181d5480c6 [Validator] Fix tests by making constraint options dumps order consistent
2021-06-09 16:50:47 +02:00
Olivier Dolbeau
37e602dd28 Remove TLS related options when not using TLS 2021-06-09 15:18:26 +02:00
Alexander M. Turek
1d24bce18f [HttpFoundation] Handle tentative return types
Signed-off-by: Alexander M. Turek <me@derrabus.de>
2021-06-09 13:23:53 +02:00
Alexander M. Turek
a7f8180004 Merge branch '4.4' into 5.2
* 4.4:
  [Config] Backport type declarations
  [VarExporter] Fix test on PHP 8.1
  [DependencyInjection] Fix CSV file mime type guess test for PHP 8.1
2021-06-09 12:57:10 +02:00
Alexander M. Turek
510be7aa1e minor #41630 [Config] Backport type declarations (derrabus)
This PR was merged into the 4.4 branch.

Discussion
----------

[Config] Backport type declarations

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

This PR backports type declarations from #41575 where it's safe to do so.

Commits
-------

46e18aff9b [Config] Backport type declarations
2021-06-09 12:55:15 +02:00
Alexandre Daubois
181d5480c6 [Validator] Fix tests by making constraint options dumps order consistent 2021-06-09 12:37:51 +02:00
Nicolas Grekas
12f3e37a46 minor #41627 [VarExporter] Fix test on PHP 8.1 (derrabus)
This PR was merged into the 4.4 branch.

Discussion
----------

[VarExporter] Fix test on PHP 8.1

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

On PHP 8.1, when dumping the properties of an object (either through serialization, `var_dump` or an array cast), those properties might appear in a different order than on PHP 8.0 and earlier.

Because of that, the test I'm fixing here fails. Since the order of the properties is not really important, I'm sorting the dumped array by key in order to get a stable order.

Commits
-------

56359cb999 [VarExporter] Fix test on PHP 8.1
2021-06-09 09:58:59 +02:00
Nicolas Grekas
7445c3eaab minor #41614 [Mime] Fix CSV file mime type guess test for PHP 8.1 (alexandre-daubois)
This PR was merged into the 4.4 branch.

Discussion
----------

[Mime] Fix CSV file mime type guess test for PHP 8.1

| 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       | Part of #41552 <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License       | MIT
| Doc PR        | N/A

I had the same result as `@derrabus` on my computer: `application/csv`. The CI returns `text/csv`. These two seem possible, although `text/csv` is described in [RFC 7111](https://datatracker.ietf.org/doc/html/rfc7111#page-3).

(Oops little typo in title, thanks Alexander for the fix 🙏 )

Commits
-------

117cb8f085 [DependencyInjection] Fix CSV file mime type guess test for PHP 8.1
2021-06-09 09:49:03 +02:00
Alexander M. Turek
46e18aff9b [Config] Backport type declarations
Signed-off-by: Alexander M. Turek <me@derrabus.de>
2021-06-08 23:07:02 +02:00
Alexander M. Turek
6ff8926d69 Merge branch '4.4' into 5.2
* 4.4:
  [HttpClient] Revert bindto workaround
2021-06-08 20:04:30 +02:00
Alexander M. Turek
56359cb999 [VarExporter] Fix test on PHP 8.1
Signed-off-by: Alexander M. Turek <me@derrabus.de>
2021-06-08 19:35:06 +02:00
Alexander M. Turek
7957b48855 bug #41624 [HttpClient] Revert bindto workaround for unaffected PHP versions (derrabus)
This PR was merged into the 4.4 branch.

Discussion
----------

[HttpClient] Revert bindto workaround for unaffected PHP versions

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

This PR reverts the changes of #38086 for PHP versions that don't need that workaround.

Commits
-------

e9afce3334 [HttpClient] Revert bindto workaround
2021-06-08 19:16:05 +02:00
Alexander M. Turek
e9afce3334 [HttpClient] Revert bindto workaround
… for unaffected PHP versions

Signed-off-by: Alexander M. Turek <me@derrabus.de>
2021-06-08 18:37:25 +02:00
Nicolas Grekas
3aa392a8b7 Merge branch '4.4' into 5.2
* 4.4:
  [DependencyInjection] Fix testServiceSubscriber for PHP 8.1
2021-06-08 17:23:31 +02:00
Nicolas Grekas
7ca099579c minor #41603 [DependencyInjection] Fix testServiceSubscriber for PHP 8.1 (alexandre-daubois)
This PR was merged into the 4.4 branch.

Discussion
----------

[DependencyInjection] Fix testServiceSubscriber for PHP 8.1

| 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 #41592 and part of #41552 <!-- 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
-------

a5be196827 [DependencyInjection] Fix testServiceSubscriber for PHP 8.1
2021-06-08 17:22:03 +02:00
Nicolas Grekas
3004b9c089 Merge branch '4.4' into 5.2
* 4.4:
  Optimize travis file a bit
  Remove duplicate catch block
  Add missing translations for Thai
  Add missing translations for Swedish
2021-06-08 14:44:01 +02:00
Nicolas Grekas
a5816d11af minor #41609 Optimize travis file a bit (nicolas-grekas)
This PR was merged into the 4.4 branch.

Discussion
----------

Optimize travis file a bit

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

Commits
-------

fe51b80903 Optimize travis file a bit
2021-06-08 14:43:26 +02:00
Nicolas Grekas
fe51b80903 Optimize travis file a bit 2021-06-08 13:38:09 +02:00
Alexandre Daubois
117cb8f085 [DependencyInjection] Fix CSV file mime type guess test for PHP 8.1 2021-06-08 13:22:53 +02:00
Nicolas Grekas
2d699e3054 minor #41589 Add missing translations for Swedish (kiennguyen95)
This PR was merged into the 4.4 branch.

Discussion
----------

Add missing translations for Swedish

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

Add missing Swedish translations to Security component.

Commits
-------

65e96dd13f Add missing translations for Swedish
2021-06-08 11:01:38 +02:00
Nicolas Grekas
b6d9c47df3 minor #41588 Add missing translations for Thai (kiennguyen95)
This PR was merged into the 4.4 branch.

Discussion
----------

Add missing translations for Thai

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

Add missing Thai translations to Security component.

Commits
-------

d3249baa06 Add missing translations for Thai
2021-06-08 11:01:04 +02:00
Nicolas Grekas
e658d001e7 minor #41596 [FrameworkBundle] Remove duplicate catch block (OskarStark)
This PR was merged into the 4.4 branch.

Discussion
----------

[FrameworkBundle] Remove duplicate catch block

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License       | MIT
| Doc PR        | symfony/symfony-docs#... <!-- required for new features -->

Spottet while reviewing https://github.com/symfony/symfony/pull/41576 by `@derrabus`

Commits
-------

32cac1c6f2 Remove duplicate catch block
2021-06-08 10:55:51 +02:00
Alexandre Daubois
a5be196827 [DependencyInjection] Fix testServiceSubscriber for PHP 8.1 2021-06-08 09:24:10 +02:00
Oskar Stark
32cac1c6f2 Remove duplicate catch block 2021-06-07 21:46:40 +02:00
Nicolas Grekas
e98baf5ea6 Merge branch '4.4' into 5.2
* 4.4:
  fix tests (quinter)
2021-06-07 21:01:00 +02:00
Nicolas Grekas
a4dee4aaba minor #41594 fix tests (quinter) (nicolas-grekas)
This PR was merged into the 4.4 branch.

Discussion
----------

fix tests (quinter)

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

Commits
-------

a70b537fbc fix tests (quinter)
2021-06-07 20:58:54 +02:00
Nicolas Grekas
a70b537fbc fix tests (quinter) 2021-06-07 20:50:09 +02:00
Nicolas Grekas
ed17193926 Merge branch '4.4' into 5.2
* 4.4:
  fix tests (quater)
  bump ext-mongodb
2021-06-07 18:36:35 +02:00
Nicolas Grekas
21619fe77f minor #41591 fix tests (quater) (nicolas-grekas)
This PR was merged into the 4.4 branch.

Discussion
----------

fix tests (quater)

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

Commits
-------

e705a66a7f fix tests (quater)
2021-06-07 18:36:11 +02:00
Nicolas Grekas
e705a66a7f fix tests (quater) 2021-06-07 18:35:43 +02:00
Kien Nguyen
d3249baa06 Add missing translations for Thai 2021-06-07 22:19:59 +07:00
Nicolas Grekas
a1f376b276 bump ext-mongodb 2021-06-07 17:05:04 +02:00