Commit Graph

54578 Commits

Author SHA1 Message Date
Nicolas Grekas
173cf480eb minor #41115 [WebProfilerBundle] Add simple backoff strategy on 404 (loevgaard)
This PR was squashed before being merged into the 5.3-dev branch.

Discussion
----------

[WebProfilerBundle] Add simple backoff strategy on 404

| Q             | A
| ------------- | ---
| Branch?       | 5.x
| Bug fix?      | no
| New feature?  | yes
| Deprecations? | no
| Tickets       | Fix https://github.com/symfony/symfony/issues/41112
| License       | MIT

Instead of just retrying every second 5 times, this PR implements a very basic backoff strategy where it waits 1, 1, 2, 3, 5 seconds between the respective requests instead which amounts to a total wait of 12 seconds instead of 5.

Commits
-------

f1b9684ebd [WebProfilerBundle] Add simple backoff strategy on 404
2021-05-07 16:43:44 +02:00
Joachim Løvgaard
f1b9684ebd [WebProfilerBundle] Add simple backoff strategy on 404 2021-05-07 16:43:39 +02:00
Nicolas Grekas
0c1261ebe1 Merge branch '5.2' into 5.x
* 5.2: (23 commits)
  [Console] Fix Windows code page support
  [SecurityBundle] Allow ips parameter in access_control accept comma-separated string
  [Form] Add TranslatableMessage support to choice_label option of ChoiceType
  Remove code that deals with legacy behavior of PHP_Incomplete_Class
  [Config][DependencyInjection] Uniformize trailing slash handling
  [PropertyInfo] Make ReflectionExtractor correctly extract nullability
  [PropertyInfo] fix attribute namespace with recursive traits
  [PhpUnitBridge] Fix tests with `@doesNotPerformAssertions` annotations
  Check redis extension version
  [Security] Update Russian translations
  [Notifier] Fix return SentMessage then Messenger not used
  [VarExporter] Add support of PHP enumerations
  [Security] Added missing Japanese translations
  [Security] Added missing Polish translations
  [Security] Add missing Italian translations #41051
  [Security] Missing translations pt_BR
  getProtocolVersion may return null
  Fix return type on isAllowedProperty method
  Make FailoverTransport always pick the first transport
  [TwigBridge] Fix HTML for translatable custom-file label in Bootstrap 4 theme
  ...
2021-05-07 16:34:05 +02:00
Nicolas Grekas
53e47b3e9d bug #41113 [Console] Fix Windows code page support (orkan)
This PR was submitted for the 5.x branch but it was squashed and merged into the 5.2 branch instead.

Discussion
----------

[Console] Fix Windows code page support

| Q             | A
| ------------- | ---
| Branch?       | 5.2
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #37385, Fix #35842, Fix #36324, Fix #37495, Fix #37278
| License       | MIT

Corrects previous fixes that dealt with the mojibake problem on Windows where an OEM code page was applied to an input string and then messed with PHP.internal_encoding setting used by the script. This caused strings with different encodings to be displayed on the console output.

Commits
-------

be68682fd1 [Console] Fix Windows code page support
2021-05-07 16:24:57 +02:00
Marek Zajac
be68682fd1 [Console] Fix Windows code page support 2021-05-07 16:24:28 +02:00
Nicolas Grekas
897f2874a0 bug #40902 [Security] Allow ips parameter in access_control to accept comma-separated string (edefimov)
This PR was merged into the 5.2 branch.

Discussion
----------

[Security] Allow ips parameter in access_control to accept comma-separated string

| Q             | A
| ------------- | ---
| Branch?       | 5.2
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | #40881, #40864, #40865
| License       | MIT

PR #38149 introduced a new feature to accept a comma-separated string in ip adresses setting in `access_control` configuration  section of security bundle.

However the feature works in inconsistent manner: comma-separated string can be successfully passed via environment variable, but can not be passed as plain string. This PR changes this inconsistent behavior by allowing validation pass if comma-separated list of ip addresses is given in plain string.

More detailed explanation about the inconsistent behavior can be found [here](https://github.com/symfony/symfony/issues/40881#issuecomment-823906622)

Commits
-------

8947482342 [SecurityBundle] Allow ips parameter in access_control accept comma-separated string
2021-05-07 16:17:51 +02:00
Evgenij Efimov
8947482342 [SecurityBundle] Allow ips parameter in access_control accept comma-separated string 2021-05-07 16:17:10 +02:00
Nicolas Grekas
38a991e7e8 bug #40980 [TwigBridge] Fix HTML for translatable custom-file label in Bootstrap 4 theme (acran)
This PR was merged into the 5.2 branch.

Discussion
----------

[TwigBridge] Fix HTML for translatable custom-file label in Bootstrap 4 theme

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

Bootstrap allows to translate/change the label of the upload button of a `custom-file` input via SCSS, see [Bootstrap docs](https://getbootstrap.com/docs/4.6/components/forms/#translating-or-customizing-the-strings-with-scss):
~~~scss
$custom-file-text: (
  en: "Browse",
  es: "Elegir"
);
~~~

This works by generating the following CSS which depends on the `lang` attribute of the input:

~~~css
.custom-file-input:lang(es) ~ .custom-file-label::after {
	content: "Elegir";
}
~~~

This however currently does not work with the HTML generated by the theme since the resulting HTML is of the form (redacted here to the relevant parts):
~~~html
<div class="custom-file">
  <input type="file" id="..." class="custom-file-input">
  <label for="..." lang="es" class="custom-file-label"></label>
</div>
~~~
while it should be of the form
~~~html
<div class="custom-file">
  <input type="file" id="..." lang="es" class="custom-file-input">
  <label for="..." class="custom-file-label"></label>
</div>
~~~

i.e. the `lang` was placed on the `label` instead of the `input`.

This PR fixes this to be compatible with Bootstrap 4.

Commits
-------

a95bbaaaef [TwigBridge] Fix HTML for translatable custom-file label in Bootstrap 4 theme
2021-05-07 16:08:53 +02:00
Nicolas Grekas
d76bfb5a62 bug #40955 [Notifier] [Bridge] Fix missed messageId for SendMessage object in slack notifier (WaylandAce)
This PR was merged into the 5.2 branch.

Discussion
----------

[Notifier] [Bridge] Fix missed messageId for SendMessage object in slack notifier

| Q             | A
| ------------- | ---
| Branch?       | 5.2
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | -
| Tickets       | -
| License       | MIT
| Doc PR        | symfony/symfony-docs#... <!-- required for new features -->

There are missed messageId property for SendMessage object in slack notifier.
Regarding slack's documentation: https://api.slack.com/messaging/sending#publishing

> One very important piece of information in this response is the `ts` value, which is essentially the ID of the message,

Commits
-------

838f36b09f [Notifier] [Bridge] Store message id for slack transport's SendMessage
2021-05-07 16:06:30 +02:00
Nicolas Grekas
72cc6660eb bug #40943 [PropertyInfo] PhpDocExtractor: Handle "true" and "false" property types (Maciej Zgadzaj)
This PR was merged into the 5.2 branch.

Discussion
----------

[PropertyInfo] PhpDocExtractor: Handle "true" and "false" property types

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

Commits
-------

b7658aac3f PhpDocExtractor: Handle "true" and "false" property types
2021-05-07 16:04:56 +02:00
Nicolas Grekas
ffbf8c2ab8 bug #40759 [Form] Add missing TranslatableMessage support to choice_label option of ChoiceType (alexandre-daubois)
This PR was merged into the 5.2 branch.

Discussion
----------

[Form] Add missing TranslatableMessage support to choice_label option of ChoiceType

It leads to loss of information because it'll use `__toString` to cast, which is incompatible with newly added `TranslatableMessage`, for example.

| Q             | A
| ------------- | ---
| Branch?       | 5.2 <!-- 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 #40622 <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License       | MIT
| Doc PR        | _none_

So this one's a bit tricky in my mind. I didn't want to check if `$dynamicLabel instanceof TranslatableMessage`, because of course it doesn't belong to the same component.

Aside, it would sound so strange to me to add `|object` to `$label` here: bb1e1e58ae/src/Symfony/Component/Form/ChoiceList/View/ChoiceView.php (L40)

But maybe that's the way to go? Requiring your help here. I'm fully open to your ideas, as we're loosing a big feature here by losing `TranslatableMessage` translation parameters.

If the passed object doesn't implement `__toString`, it'll lead to an exception during template rendering, as expected.

Commits
-------

c2873aaf0e [Form] Add TranslatableMessage support to choice_label option of ChoiceType
2021-05-07 16:01:44 +02:00
Alexandre Daubois
c2873aaf0e [Form] Add TranslatableMessage support to choice_label option of ChoiceType 2021-05-07 16:01:34 +02:00
Nicolas Grekas
2d719ac831 minor #41129 Remove code that deals with legacy behavior of PHP_Incomplete_Class (nicolas-grekas)
This PR was merged into the 5.2 branch.

Discussion
----------

Remove code that deals with legacy behavior of PHP_Incomplete_Class

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

Commits
-------

c5a4f7d8f9 Remove code that deals with legacy behavior of PHP_Incomplete_Class
2021-05-07 15:43:39 +02:00
Nicolas Grekas
c5a4f7d8f9 Remove code that deals with legacy behavior of PHP_Incomplete_Class 2021-05-07 15:42:21 +02:00
Nicolas Grekas
d065920401 Merge branch '4.4' into 5.2
* 4.4:
  [Config][DependencyInjection] Uniformize trailing slash handling
  [PropertyInfo] Make ReflectionExtractor correctly extract nullability
  [PropertyInfo] fix attribute namespace with recursive traits
  Check redis extension version
  [Security] Update Russian translations
  [VarExporter] Add support of PHP enumerations
  [Security] Added missing Japanese translations
  [Security] Added missing Polish translations
  [Security] Add missing Italian translations #41051
  [Security] Missing translations pt_BR
  getProtocolVersion may return null
  [Translation] Set default locale for IdentityTranslatorTest
2021-05-07 15:41:16 +02:00
Nicolas Grekas
0e738ef170 bug #40917 [Config][DependencyInjection] Uniformize trailing slash handling (dunglas)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[Config][DependencyInjection] Uniformize trailing slash handling

| 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       | n/a
| License       | MIT
| Doc PR        | n/a

Currently, the handling of trailing slashes in file loaders exclusion rules is inconsistent, which can create hard to debug issues.

Example:

```yaml
services:
    App\:
        resource: '../src/'
        exclude:
            # This works
            - '../src/FooBar/DependencyInjection/'
            - '../src/FooBar/DependencyInjection'
            - '../src/FooBar/DependencyInjection/*'
            - '../src/*/DependencyInjection'
            - '../src/*/DependencyInjection/*'

            # This doesn't work
            - '../src/*/DependencyInjection/'
```

This PR fixes this subtle issue.

Commits
-------

dc50aa3b55 [Config][DependencyInjection] Uniformize trailing slash handling
2021-05-07 15:37:58 +02:00
Kévin Dunglas
dc50aa3b55 [Config][DependencyInjection] Uniformize trailing slash handling 2021-05-07 15:37:51 +02:00
Nicolas Grekas
fab61ee9df bug #40699 [PropertyInfo] Make ReflectionExtractor correctly extract nullability (shiftby)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[PropertyInfo] Make ReflectionExtractor correctly extract nullability

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

When the property had a default value ReflectionExtractor was always returning isNullable: false. After PHP 7.4 we can get isNullable from the typehint.

Commits
-------

d5fce4c779 [PropertyInfo] Make ReflectionExtractor correctly extract nullability
2021-05-07 15:22:49 +02:00
Maxim Dovydenok
d5fce4c779 [PropertyInfo] Make ReflectionExtractor correctly extract nullability 2021-05-07 15:22:44 +02:00
Nicolas Grekas
ba3834647f bug #40874 [PropertyInfo] fix attribute namespace with recursive traits (soullivaneuh)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[PropertyInfo] fix attribute namespace with recursive traits

| 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 #36997 <!-- 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 -->

The targeted issue is closed because considered as solved by https://github.com/symfony/symfony/pull/40175.

However, the fix is not enough and is not working with recursive trait inclusion. (see https://github.com/symfony/symfony/issues/36997#issuecomment-822572640).

This pull request is completing the first fix of `@xabbuh`, trying to follow the same coding style. 😉

Commits
-------

bbadfb34cc [PropertyInfo] fix attribute namespace with recursive traits
2021-05-07 15:17:33 +02:00
Sullivan SENECHAL
bbadfb34cc [PropertyInfo] fix attribute namespace with recursive traits 2021-05-07 15:17:28 +02:00
Nicolas Grekas
a44eaf353c minor #40991 [Mime] Add support for application/vnd.etsi.asic-e+zip mime type (mllnd)
This PR was merged into the 5.3-dev branch.

Discussion
----------

[Mime] Add support for application/vnd.etsi.asic-e+zip mime type

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

`application/vnd.etsi.asic-e+zip` is a mime type used by `.asice` (formerly `.bdoc`) file containers. Such files are widely used in Estonia to represent digitally signed files.

**Resources:**
https://www.id.ee/wp-content/uploads/2020/06/bdoc-spec212-eng.pdf (spec)
https://www.iana.org/assignments/media-types/application/vnd.etsi.asic-e+zip

Commits
-------

165434cd15 Include .asice extension in mime types update script
2021-05-07 15:12:24 +02:00
Markkus Millend
165434cd15 Include .asice extension in mime types update script 2021-05-07 15:12:11 +02:00
Nicolas Grekas
4e07738904 minor #41016 [Mime] update types map (nicolas-grekas)
This PR was merged into the 5.3-dev branch.

Discussion
----------

[Mime] update types map

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

Commits
-------

bcf63398b9 [Mime] update types map
2021-05-07 14:57:02 +02:00
Nicolas Grekas
2492ccfff9 bug #40957 [PhpUnitBridge] Fix tests with `@doesNotPerformAssertions` annotations (alexpott)
This PR was submitted for the 5.x branch but it was squashed and merged into the 5.2 branch instead.

Discussion
----------

[PhpUnitBridge] Fix tests with ``@doesNotPerformAssertions`` annotations

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

If a test uses the ``@doesNotPerformAssertions`` and also has the Symfony Deprecation listener enabled because it is using the trait as well then this does not work as expected. Currently the bridge is checking this annotation/setting prior to running the test. This results in:
* Tests not working as expected when `$this->expectNotToPerformAssertions()` is called during a test
* If this is being used to ensure that a test does not perform an assertion then due to the bridge the test will no longer be marked as risky because we call `$test->getTestResultObject()->beStrictAboutTestsThatDoNotTestAnything(false);`

Commits
-------

4ad12320cd [PhpUnitBridge] Fix tests with ``@doesNotPerformAssertions`` annotations
2021-05-07 14:56:22 +02:00
Alex Pott
4ad12320cd [PhpUnitBridge] Fix tests with @doesNotPerformAssertions annotations 2021-05-07 14:56:09 +02:00
Nicolas Grekas
ae38bda5c2 bug #41099 [Cache] Check if phpredis version is compatible with stream parameter (nicolassing)
This PR was merged into the 4.4 branch.

Discussion
----------

[Cache] Check if phpredis version is compatible with stream parameter

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

If you use phpredis <5.3.0, you can't connect to Redis since symfony/cache 5.2.7

Fixes #41110

Commits
-------

841d85a7ce Check redis extension version
2021-05-07 14:34:03 +02:00
Nicolas Assing
841d85a7ce Check redis extension version 2021-05-07 14:33:52 +02:00
Nicolas Grekas
c276f0dfd6 minor #40931 [Translation] [CI] Set default locale for IdentityTranslatorTest (Nyholm)
This PR was merged into the 4.4 branch.

Discussion
----------

[Translation] [CI] Set default locale for IdentityTranslatorTest

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

This will fix a few CI issues. Not sure if this is the correct fix.

Commits
-------

92a61b1cf6 [Translation] Set default locale for IdentityTranslatorTest
2021-05-07 14:15:21 +02:00
Nicolas Grekas
e0fe8c1bca minor #41108 [Security] Update Russian translations (a1812)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[Security] Update Russian translations

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

Translate to Russian

Commits
-------

965c6e4a2d [Security] Update Russian translations
2021-05-07 14:07:35 +02:00
Roman Martinuk
965c6e4a2d [Security] Update Russian translations 2021-05-07 14:07:27 +02:00
Oskar Stark
ca46f10992 bug #40982 [Notifier] Fix return SentMessage then Messenger not used (WaylandAce)
This PR was merged into the 5.2 branch.

Discussion
----------

[Notifier] Fix return SentMessage then Messenger not used

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

https://github.com/symfony/symfony/pull/37748 Broke the Notifier when Transport not used.

Commits
-------

1245114257 [Notifier] Fix return SentMessage then Messenger not used
2021-05-07 09:31:51 +02:00
Fabien Potencier
883899eb87 bug #40972 Avoid regenerating the remember me token if it is still fresh (Seldaek)
This PR was merged into the 5.3-dev branch.

Discussion
----------

Avoid regenerating the remember me token if it is still fresh

| Q             | A
| ------------- | ---
| Branch?       | 5.x
| Bug fix?      | ~yes
| New feature?  | no?
| Deprecations? | no
| Tickets       | Refs https://github.com/symfony/symfony/issues/40971
| License       | MIT
| Doc PR        |  <!-- required for new features -->

Please see https://github.com/symfony/symfony/issues/40971 for more information about the context of this change.

As it was discussed in https://github.com/symfony/symfony/issues/18384 - regenerating the remember me token/cookie is done to avoid old cookies being stolen and reused, this is a valid concern (although cookie theft is much harder these days with httpOnly and secure flags) and a good security practice, but if the token was refreshed very recently it seems a bit overkill to refresh it again, it leads to more DB writes, and for us who are trying to support concurrent re-authenticating requests it is causing further problems if every request triggers a new token update.

I'd be happy to also update this in the old PersistentTokenBasedRememberMeServices if needed, but I find that it is perhaps better to just do this in the new auth system as it was until 5.3 considered experimental.

Commits
-------

a942b5f684 Avoid regenerating the remember me token if it is still fresh
2021-05-07 08:38:01 +02:00
Fabien Potencier
e5e68e5418 minor #41125 [DoctrineBridge] added missing ` (connorhu)
This PR was merged into the 5.3-dev branch.

Discussion
----------

[DoctrineBridge] added missing `

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

Commits
-------

e596f4da1e added missing `
2021-05-07 08:36:09 +02:00
Pavel Kirpitsov
1245114257 [Notifier] Fix return SentMessage then Messenger not used 2021-05-07 09:30:17 +03:00
Karoly Gossler
e596f4da1e
added missing ` 2021-05-06 23:33:47 +02:00
Nicolas Grekas
e51e651c4a bug #41072 [VarExporter] Add support of PHP enumerations (alexandre-daubois)
This PR was merged into the 4.4 branch.

Discussion
----------

[VarExporter] Add support of PHP enumerations

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

Commits
-------

4b0f2997a5 [VarExporter] Add support of PHP enumerations
2021-05-06 21:18:04 +02:00
Alexandre Daubois
4b0f2997a5 [VarExporter] Add support of PHP enumerations 2021-05-06 21:16:33 +02:00
Nicolas Grekas
ef2da6c887 feature #40992 [Notifier] Add SlackOptions::threadTs() to send message as reply (WaylandAce)
This PR was merged into the 5.3-dev branch.

Discussion
----------

[Notifier] Add SlackOptions::threadTs() to send message as reply

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

Allow specify argument [thread_ts](https://api.slack.com/methods/chat.postMessage#arg_thread_ts) to send reply message.

Commits
-------

d3807a79b8 [Notifier] Add SlackOptions::threadTs() to send message as reply
2021-05-06 21:01:04 +02:00
Pavel Kirpitsov
d3807a79b8 [Notifier] Add SlackOptions::threadTs() to send message as reply 2021-05-06 20:59:07 +02:00
Fabien Potencier
72b6001f83 minor #41122 [Security] Added missing Japanese translations (kshida)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[Security] Added missing Japanese translations

| 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 #41052 <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License       | MIT
| Doc PR        | N/A <!-- 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.
 - Changelog entry should follow https://symfony.com/doc/current/contributing/code/conventions.html#writing-a-changelog-entry
-->
Added id19 and id20.
The indentation for id17 and id18 was incorrect, so I fixed it.
I hope it helps you :)

Commits
-------

26cd193085 [Security] Added missing Japanese translations
2021-05-06 18:44:07 +02:00
kshida
26cd193085 [Security] Added missing Japanese translations 2021-05-06 18:44:00 +02:00
Fabien Potencier
3f572553cf bug #41104 Fix return type in isAllowedProperty method on ReflectionExtractor class (Tomanhez)
This PR was merged into the 5.2 branch.

Discussion
----------

Fix return type in isAllowedProperty method on ReflectionExtractor class

| Q             | A
| ------------- | ---
| Branch?       | 5.2
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #41103
| License       | MIT
| Doc PR        | symfony/symfony-docs#... <!-- required for new features -->

Commits
-------

8c0e8f7d83 Fix return type on isAllowedProperty method
2021-05-06 13:14:11 +02:00
Fabien Potencier
960891e756 bug #41078 [Notifier] Make FailoverTransport always pick the first transport (jschaedl)
This PR was merged into the 5.2 branch.

Discussion
----------

[Notifier] Make FailoverTransport always pick the first transport

| 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       | Fix #40895 <!-- 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.
 - Changelog entry should follow https://symfony.com/doc/current/contributing/code/conventions.html#writing-a-changelog-entry
-->

Commits
-------

337f828b23 Make FailoverTransport always pick the first transport
2021-05-06 13:12:28 +02:00
Fabien Potencier
18e6e2d159 Fix CHANGELOG 2021-05-06 13:08:14 +02:00
Fabien Potencier
5b91b37ce6 feature #39157 [TwigBridge] Add form templates for Bootstrap 5 (ker0x)
This PR was squashed before being merged into the 5.3-dev branch.

Discussion
----------

[TwigBridge] Add form templates for Bootstrap 5

| Q             | A
| ------------- | ---
| Branch       | 5.x
| Bug fix?      | no
| New feature?  | yes
| Deprecations? | no
| Tickets       |
| License       | MIT
| Doc PR        | [#15158](https://github.com/symfony/symfony-docs/pull/15158)

This PR add support for [Bootstrap 5](https://v5.getbootstrap.com/)

* Removal of the `form-group` class as it no longer exists in Bootstrap 5. Instead, row `div` have a `mb-3` class by default that can be override with the `row_attr` option.
* Errors are no longer display inside `label` but after the `widget` (or `help` if present).
* Replace `form-control` with `form-select` in `choice_widget_collapsed` block.
* Replace `form-control` with `form-range` in `form_widget_simple` block when the type is `range`.
* Add `form-control-color` to the `widget` class if type is `color`.
* Replace `small` with `div` element for `help` and also remove the `text-muted` class.
* Update the `percent_widget` and `money_widget` to handle correctly prepend and append elements.
* Drop support for custom file input as it's no longer (or yet ?) supported in Bootstrap 5

[Bootstrap 5 forms overview](https://v5.getbootstrap.com/docs/5.0/forms/overview/)
[Bootstrap 5 migration](https://v5.getbootstrap.com/docs/5.0/migration/)

Here is the result:

![bootstrap_5_layout](https://user-images.githubusercontent.com/5331654/100088569-9e1e9d80-2e50-11eb-88bf-2596e9ae7d28.png)
![bootstrap_5_horizontal_layout](https://user-images.githubusercontent.com/5331654/100088582-a24abb00-2e50-11eb-9b0c-09336c0327cd.png)

Commits
-------

d52d0969ab [TwigBridge] Add form templates for Bootstrap 5
2021-05-06 13:07:32 +02:00
Romain Monteil
d52d0969ab [TwigBridge] Add form templates for Bootstrap 5 2021-05-06 13:07:27 +02:00
Fabien Potencier
beca689412 minor #41117 [Security] Add missing Italian translations (ramundomario)
This PR was merged into the 4.4 branch.

Discussion
----------

[Security] Add missing Italian translations

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

Commits
-------

4dc5c82fa4 [Security] Add missing Italian translations #41051
2021-05-06 13:04:48 +02:00
Fabien Potencier
4c7a54ac08 minor #41079 [Security] Added missing Polish translations (ShiroRyokoshi)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[Security] Added missing Polish translations

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

The translations added were based off the english ones.
This is my first PR ever, I hope I didn't do any mistakes.

Commits
-------

774a1d35da [Security] Added missing Polish translations
2021-05-06 13:02:55 +02:00
Shiro
774a1d35da [Security] Added missing Polish translations 2021-05-06 13:02:50 +02:00