Commit Graph

54319 Commits

Author SHA1 Message Date
alireza 239152f2d7
[Security][Validator] Add missing Persian translations (fa) 2021-07-19 14:29:53 -07:00
Nyholm 1681bc1cce
[Mailer] Make sure Http TransportException is not leaking 2021-07-19 14:26:15 -07:00
Vasilij Dusko cb72f15cb7 * wrong trans-unit ids 2021-07-19 21:04:28 +03:00
Nicolas Grekas e737bd2655 bug #42091 [Console] Run commands when implements SignalableCommandInterface without pcntl and they have'nt signals (PaolaRuby)
This PR was squashed before being merged into the 5.2 branch.

Discussion
----------

[Console] Run commands when implements SignalableCommandInterface without pcntl and they have'nt signals

| Q             | A
| ------------- | ---
| Branch?       | 5.2
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix [#42076](https://github.com/symfony/symfony/issues/42076)
| License       | MIT

When a command extends a class wich implements SignalableCommandInterface but the command has empty signals to dispatch, it still can be executed, It can be useful when the extension is not available and the command is necessary.
Also, it can be used like a workaround for support other environments, for example windows servers, they don't have pcntl extension

Commits
-------

ad63d0b553 [Console] Run commands when implements SignalableCommandInterface without pcntl and they have'nt signals
2021-07-19 11:50:06 +02:00
PaoRuby ad63d0b553 [Console] Run commands when implements SignalableCommandInterface without pcntl and they have'nt signals 2021-07-19 11:49:57 +02:00
Nicolas Grekas 5514f1551d Merge branch '4.4' into 5.2
* 4.4:
  [Form] Fix 'invalid_message' use in multiple ChoiceType
  [Form] fix some type annotations
2021-07-19 11:49:22 +02:00
Nicolas Grekas a239f684eb bug #42150 [Form] Fix 'invalid_message' use in multiple ChoiceType (alexandre-daubois)
This PR was merged into the 4.4 branch.

Discussion
----------

[Form] Fix 'invalid_message' use in multiple ChoiceType

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

Commits
-------

4f2b492166 [Form] Fix 'invalid_message' use in multiple ChoiceType
2021-07-19 11:22:32 +02:00
Nicolas Grekas d64f7cdb10 minor #42012 [Form] fix some type annotations (nicolas-grekas)
This PR was merged into the 4.4 branch.

Discussion
----------

[Form] fix some type annotations

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

Backported from #41998

The change in `FormValidator` is likely a bug fix, but it could be an incomplete one.
`testFieldsValidateInSequenceWithNestedGroupsArray` triggers a call to `getConstraintsInGroups` with an array.

I'd appreciate if `@HeahDude`, `@xabbuh`, or anyone with a better knowledge of Form could have a look please.

Commits
-------

e49441d5c2 [Form] fix some type annotations
2021-07-19 11:21:54 +02:00
Alexandre Daubois 4f2b492166 [Form] Fix 'invalid_message' use in multiple ChoiceType 2021-07-19 09:46:51 +02:00
Oskar Stark 24ec4e077c bug #42183 [Notifier] Allow passing a previous throwable to exceptions (derrabus)
This PR was merged into the 5.2 branch.

Discussion
----------

[Notifier] Allow passing a previous throwable to exceptions

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

It should always be possible to pass a a previous throwable to a new exception. This PR streamlines the constructors of the Notifier component's exception classes.

Commits
-------

e1973089d8 [Notifier] Allow passing a previous throwable to exceptions
2021-07-19 08:01:40 +02:00
Oskar Stark b74d9c34ae bug #42182 [Notifier] Make sure Http TransportException is not leaking (Nyholm)
This PR was squashed before being merged into the 5.2 branch.

Discussion
----------

[Notifier] Make sure Http TransportException is not leaking

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

We dont want the notifier to throw exceptions from the http-client component. This will make sure to catch such exceptions and rethrow the proper TransportException from the Notifier component.

Commits
-------

1eed48892d [Notifier] Make sure Http TransportException is not leaking
2021-07-19 07:52:54 +02:00
Nyholm 1eed48892d [Notifier] Make sure Http TransportException is not leaking 2021-07-19 07:52:48 +02:00
Oskar Stark 8e09aa3b12 minor #42186 [Notifier] Make sure Smsapi 5.2 has a changelog (Nyholm)
This PR was merged into the 5.2 branch.

Discussion
----------

[Notifier] Make sure Smsapi 5.2 has a changelog

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

Im not sure what the best way to fix this issue is. The smsapi bridge was released in 5.2 without a changelog. In 5.3 we added a changelog and incorrectly stated that the package was first released in 5.3.

Related PR: #39557
Packagist: https://packagist.org/packages/symfony/smsapi-notifier

This PR adds the changelog for 5.2 and I hope the maintainer that do the merge up handles the conflict correctly.

Commits
-------

984e890efb Make sure Smsapi 5.2 has a changelog
2021-07-19 07:47:55 +02:00
Nyholm 984e890efb
Make sure Smsapi 5.2 has a changelog 2021-07-18 18:06:41 -07:00
Alexander M. Turek e1973089d8 [Notifier] Allow passing a previous throwable to exceptions
Signed-off-by: Alexander M. Turek <me@derrabus.de>
2021-07-19 02:25:08 +02:00
Robin Chalas e7faee418e
bug #42173 [Messenger] [Redis] Fix auth option wrongly considered invalid (chalasr)
This PR was merged into the 5.2 branch.

Discussion
----------

[Messenger] [Redis] Fix auth option wrongly considered invalid

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

Will also make the CI back to green on 5.2.

Commits
-------

8bc6ee52fc [Messenger][Redis] Fix auth option wrongly considered invalid
2021-07-18 19:18:51 +02:00
Robin Chalas 8bc6ee52fc
[Messenger][Redis] Fix auth option wrongly considered invalid 2021-07-18 18:49:40 +02:00
Alexander M. Turek c38141eda2 minor #42175 [Cache] Don't use deprecated TestLogger class (derrabus)
This PR was merged into the 5.2 branch.

Discussion
----------

[Cache] Don't use deprecated TestLogger class

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

`TestLogger` has been removed with `psr/log` 2. I'm replacing it with a local implementation to make our tests pass again.

Commits
-------

3ea73c7b1d Don't use deprecated TestLogger class
2021-07-18 18:27:17 +02:00
Alexander M. Turek 96c1045d0b Merge branch '4.4' into 5.2
* 4.4:
  Simplify some code with null coalesce operator
2021-07-18 18:25:43 +02:00
Alexander M. Turek 20d3d843ad minor #42165 Simplify some code with null coalesce operator (javiereguiluz)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

Simplify some code with null coalesce operator

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

For your consideration. There are many other possible usages of null coalesce operator, but the result is not very readable ... so this PR only contains the changes where the result is clearly better.

Commits
-------

17ad5b75fa Simplify some code with null coalesce operator
2021-07-18 18:24:23 +02:00
Javier Eguiluz 17ad5b75fa Simplify some code with null coalesce operator 2021-07-18 18:24:15 +02:00
Alexander M. Turek 3ea73c7b1d Don't use deprecated TestLogger class
Signed-off-by: Alexander M. Turek <me@derrabus.de>
2021-07-18 18:17:37 +02:00
Alexander M. Turek 5ec14aa468 Merge branch '4.4' into 5.2
* 4.4:
  Indicate compatibility with psr/log 2 and 3

Signed-off-by: Alexander M. Turek <me@derrabus.de>
2021-07-18 17:21:43 +02:00
Alexander M. Turek 39c02d6b1a bug #42174 Indicate compatibility with psr/log 2 and 3 (derrabus)
This PR was merged into the 4.4 branch.

Discussion
----------

Indicate compatibility with psr/log 2 and 3

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

Versions 2 and 3 of the PSR-3 interfaces have been published and most of our components are already compatible.

Commits
-------

d2209ec8dd Indicate compatibility with psr/log 2 and 3
2021-07-18 17:14:03 +02:00
Alexander M. Turek d2209ec8dd Indicate compatibility with psr/log 2 and 3
Signed-off-by: Alexander M. Turek <me@derrabus.de>
2021-07-18 16:08:08 +02:00
Robin Chalas 586899c1bd
Merge branch '4.4' into 5.2
* 4.4:
  [ci] Fix wrongly skipped integration tests
2021-07-18 15:20:27 +02:00
Alexander M. Turek fa74feb846 minor #42171 [CI] Fix wrongly skipped integration tests (chalasr)
This PR was merged into the 4.4 branch.

Discussion
----------

[CI] Fix wrongly skipped integration tests

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

The integration tests from bridges located in components (e.g. `Notifier/Bridge/Discord/Tests` or `Messenger/Bridge/Redis/Tests`) were excluded from the CI.

Spotted while working on #42163 - Some redis-messenger tests are currently broken on 5.x, which we didn't spot because of the missing entry in the phpunit config.

Commits
-------

438a503cad [ci] Fix wrongly skipped integration tests
2021-07-18 14:29:31 +02:00
Robin Chalas 438a503cad
[ci] Fix wrongly skipped integration tests 2021-07-18 10:11:24 +02:00
Tobias Schultze fb6c26c096 Merge branch '4.4' into 5.2 2021-07-17 20:28:25 +02:00
Tobias Schultze 2e8eed88c4 minor #42013 [Form] backport type fixes (nicolas-grekas)
This PR was merged into the 5.2 branch.

Discussion
----------

[Form] backport type fixes

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

Backported from #41998

Commits
-------

75691c64d1 [Form] backport type fixes
2021-07-17 20:27:19 +02:00
Tobias Schultze 482d2ce7e3 minor #42158 Optimized some strlen() calls when possible (javiereguiluz)
This PR was merged into the 4.4 branch.

Discussion
----------

Optimized some strlen() calls when possible

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

Done with PhpStorm refactoring tools and only when it's safe to do.

Commits
-------

53aaa9ef7d Optimized some strlen() calls when possible
2021-07-17 20:04:51 +02:00
Tobias Schultze d78e3e586b minor #42153 [Validator] backport type fixes (Tobion)
This PR was merged into the 5.2 branch.

Discussion
----------

[Validator] backport type fixes

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

Backport type fixes found when reviewing #42138

Commits
-------

969b28ec11 [Validator] backport type fixes
2021-07-17 20:03:41 +02:00
Tobias Schultze fa4052314b minor #42151 Use is_iterable() function when possible (javiereguiluz)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

Use is_iterable() function when possible

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

PHP added `is_iterable()` in PHP 7.1.0 (see https://www.php.net/manual/en/function.is-iterable.php) and Symfony 4.4 requires `>=7.1.3`, so maybe we can use this function to simplify some code.

Commits
-------

6919c1317d Use is_iterable() function when possible
2021-07-17 19:53:37 +02:00
Javier Eguiluz 6919c1317d Use is_iterable() function when possible 2021-07-17 19:53:30 +02:00
Tobias Schultze 5aef1207c1 minor #42164 [Finder] Improve ComparatorTest (derrabus)
This PR was merged into the 4.4 branch.

Discussion
----------

[Finder] Improve ComparatorTest

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | https://github.com/symfony/symfony/pull/42137#discussion_r671074444, https://github.com/symfony/symfony/pull/42137#discussion_r671073659
| License       | MIT
| Doc PR        | not necessary

Commits
-------

4c44dce968 [Finder] Improve ComparatorTest
2021-07-17 19:52:49 +02:00
Alexander M. Turek 2fe4b00e60 minor #42154 [Validator] Add German expression language syntax constraint violation message (xabbuh)
This PR was merged into the 4.4 branch.

Discussion
----------

[Validator] Add German expression language syntax constraint violation message

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

Commits
-------

1d6d57d179 Add German expression language syntax constraint violation message
2021-07-17 00:54:28 +02:00
Alexander M. Turek 4c44dce968 [Finder] Improve ComparatorTest
Signed-off-by: Alexander M. Turek <me@derrabus.de>
2021-07-17 00:13:12 +02:00
Javier Eguiluz 53aaa9ef7d Optimized some strlen() calls when possible 2021-07-16 15:30:15 +02:00
Christian Flothmann 1d6d57d179 Add German expression language syntax constraint violation message 2021-07-16 14:15:14 +02:00
Christian Flothmann d47cb59eee Merge branch '4.4' into 5.2
* 4.4:
  fix LDAP command usage
2021-07-16 14:07:40 +02:00
Christian Flothmann 290f76f867 minor #42152 fix LDAP command usage (xabbuh)
This PR was merged into the 4.4 branch.

Discussion
----------

fix LDAP command usage

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

Commits
-------

39c838c3ed fix LDAP command usage
2021-07-16 14:06:59 +02:00
Christian Flothmann 39c838c3ed fix LDAP command usage 2021-07-16 13:56:54 +02:00
Tobias Schultze 969b28ec11 [Validator] backport type fixes 2021-07-16 13:50:32 +02:00
Robin Chalas 32c46c018f
minor #42144 [RateLimiter] Remove redundant properties (derrabus)
This PR was merged into the 5.2 branch.

Discussion
----------

[RateLimiter] Remove redundant properties

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

Backported from #42140: Those three classes use `ResetLimiterTrait` and redeclare the properties that the trait already provides. This PR removes that redundancy.

Commits
-------

587d99f44a [RateLimiter] Remove redundant properties
2021-07-16 00:19:05 +02:00
Alexander M. Turek 587d99f44a [RateLimiter] Remove redundant properties
Signed-off-by: Alexander M. Turek <me@derrabus.de>
2021-07-16 00:07:55 +02:00
Alexander M. Turek bd889f99b1 Merge branch '4.4' into 5.2
* 4.4:
  [Validator] Backport type fixes
  [HttpFoundation] fix FileBag under PHP 8.1
  Fix composer resolution on windows
2021-07-15 23:36:33 +02:00
Alexander M. Turek 76d41cd273 minor #42141 [Validator] Backport type fixes (derrabus)
This PR was merged into the 4.4 branch.

Discussion
----------

[Validator] Backport type fixes

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

Backports from #42138.

Commits
-------

f9bb7ba074 [Validator] Backport type fixes
2021-07-15 23:35:37 +02:00
Alexander M. Turek f9bb7ba074 [Validator] Backport type fixes
Signed-off-by: Alexander M. Turek <me@derrabus.de>
2021-07-15 22:38:28 +02:00
Alexander M. Turek 6cd50ad0a0 bug #42112 [HttpFoundation] fix FileBag under PHP 8.1 (alexpott)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[HttpFoundation] fix FileBag under 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 #... <!-- 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 -->

See https://php.watch/versions/8.1/$_FILES-full-path - in \Symfony\Component\HttpFoundation\FileBag::convertFileInformation() we check against a list of hardcoded keys. This logic breaks in PHP 8.1 because of the new key.

Commits
-------

dc3504989b [HttpFoundation] fix FileBag under PHP 8.1
2021-07-15 19:37:22 +02:00
Alex Pott dc3504989b [HttpFoundation] fix FileBag under PHP 8.1 2021-07-15 19:37:16 +02:00