Commit Graph

49226 Commits

Author SHA1 Message Date
Martin Hujer
076310cfe3 [Security] Update Czech translations
- closes #41040
- The translations are not perfect for some %minutes% values
   as the pluralization is more complicated in Czech than in English.
- See: https://github.com/symfony/symfony/issues/40863#issuecomment-823928594
2021-05-04 17:37:23 +02:00
Alexander M. Turek
b05f481ff4 minor #41107 [Lock] Expand LockConflictedException docs (NoelLH)
This PR was merged into the 4.4 branch.

Discussion
----------

[Lock] Expand `LockConflictedException` docs

The goal of this is to reduce the chance of bad assumptions about lock acquisition behaviour. Fixes #40969

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

The goal of this tweak is to reduce the chance of bad assumptions about lock acquisition behaviour.

As per #40970 with suggested fixes, except now targeting the correct branch.

Commits
-------

2e4335fc70 Expand `LockConflictedException` docs
2021-05-04 17:32:16 +02:00
Noel Light-Hilary
2e4335fc70 Expand LockConflictedException docs
The goal of this is to reduce the chance of bad assumptions about lock acquisition behaviour. Fixes #40969
2021-05-04 13:06:07 +01:00
Alexander M. Turek
88dcf52964 bug #41075 [ErrorHandler] Skip "same vendor" `@method deprecations for Symfony\*` classes unless symfony/symfony is being tested (nicolas-grekas)
This PR was merged into the 4.4 branch.

Discussion
----------

[ErrorHandler] Skip "same vendor" ``@method`` deprecations for `Symfony\*` classes unless symfony/symfony is being tested

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | ref #40975 #40996 #40893
| License       | MIT
| Doc PR        |

Replaces #41001

Commits
-------

7a1a91017d [ErrorHandler] Skip "same vendor" ``@method`` deprecations for `Symfony\*` classes unless symfony/symfony is being tested
2021-05-03 22:26:13 +02:00
Alexander M. Turek
2f3519ba4f minor #41076 [Security] Add missing German translations (derrabus)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[Security] Add missing German translations

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

Commits
-------

31bba079c3 [Security] Add missing German translations
2021-05-03 22:24:54 +02:00
Alexander M. Turek
31bba079c3 [Security] Add missing German translations 2021-05-03 22:24:48 +02:00
Alexander M. Turek
899093d37d minor #41077 [Security] Add missing Dutch translations (cwiesenekker)
This PR was merged into the 4.4 branch.

Discussion
----------

[Security] Add missing Dutch translations

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

Sorry screwed up my previous branch while rebasing and amending the author name of the commits.

Commits
-------

e30eb8f555 [Security] Add missing Dutch translations
2021-05-03 22:21:35 +02:00
Koray Zorluoglu
af53ecd1fd ref #41087: missing turkish translations from security component 2021-05-03 09:26:38 +02:00
Ana Raro
22aad3962c Added translations for pt security file. 2021-05-03 08:02:13 +01:00
Nicolas Grekas
7a1a91017d [ErrorHandler] Skip "same vendor" @method deprecations for Symfony\* classes unless symfony/symfony is being tested 2021-05-02 22:47:26 +02:00
Christiaan Wiesenekker
e30eb8f555 [Security] Add missing Dutch translations 2021-05-02 22:22:44 +02:00
Alexander M. Turek
c8cc4c3ee3 minor #41068 [Security] Update Security Arabic Translations (MouadZIANI)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[Security] Update Security Arabic Translations

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

Related to #41028

Commits
-------

68c10337cc [Security] Update Security Arabic Translations
2021-05-02 21:25:58 +02:00
Mouad ZIANI
68c10337cc [Security] Update Security Arabic Translations 2021-05-02 21:25:52 +02:00
Alexander M. Turek
dab2c9c255 minor #41073 [Security] Add missing Hungarian translations (Daniel Tiringer)
This PR was merged into the 4.4 branch.

Discussion
----------

[Security] Add missing Hungarian translations

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

This PR adds missing Hungarian translations.

Commits
-------

89057b97d0 Add missing Hungarian translations
2021-05-02 21:24:16 +02:00
Alexander M. Turek
1621d78a37 minor #41069 Update Romanian Translation based on English (cybernet)
This PR was merged into the 4.4 branch.

Discussion
----------

Update Romanian Translation based on English

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

Commits
-------

d2b38fa54a Update Romanian Translation based on English
2021-05-02 21:21:38 +02:00
Nicolas Grekas
e2fc035c5b minor #41074 [Security] Add missing Vietnamese translations (jschaedl)
This PR was submitted for the 5.x branch but it was merged into the 4.4 branch instead.

Discussion
----------

[Security] Add missing Vietnamese 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       | - <!-- 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
-------

3703010b1b add missing vietnamese translations
2021-05-02 20:24:29 +02:00
Jan Schädlich
3703010b1b add missing vietnamese translations 2021-05-02 18:29:24 +01:00
Daniel Tiringer
89057b97d0 Add missing Hungarian translations 2021-05-02 17:43:59 +02:00
cybernet
d2b38fa54a
Update Romanian Translation based on English
2 missing keys
2021-05-02 11:15:38 +01:00
Fabien Potencier
30dd608576 Bump Symfony version to 4.4.23 2021-05-01 16:48:05 +02:00
Fabien Potencier
306adcdbc2
Merge pull request #41017 from fabpot/release-4.4.22
released v4.4.22
2021-05-01 16:39:01 +02:00
Fabien Potencier
f015673f30 Update VERSION for 4.4.22 2021-05-01 16:38:48 +02:00
Fabien Potencier
7aa72b9028 Update CONTRIBUTORS for 4.4.22 2021-05-01 16:38:47 +02:00
Fabien Potencier
97cafc72e2 Update CHANGELOG for 4.4.22 2021-05-01 16:38:41 +02:00
Fabien Potencier
c92acf4160 minor #41003 [Security] Add missing French translations for logging throttling (jmsche)
This PR was merged into the 4.4 branch.

Discussion
----------

[Security] Add missing French translations for logging throttling

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #40863 (at least for French)
| License       | MIT
| Doc PR        | N/A

Note: this PR replaces #40889 as somehow force-push closed the other PR.

Also this one targets 4.4 branch directly :)

Commits
-------

b64efd2848 [Security] Add missing French translations for logging throttling
2021-05-01 16:25:58 +02:00
jmsche
b64efd2848 [Security] Add missing French translations for logging throttling 2021-04-30 16:11:22 +02:00
Fabien Potencier
8679945b43 minor #40973 [HttpFoundation] Small phpdoc improvement (flack)
This PR was merged into the 4.4 branch.

Discussion
----------

[HttpFoundation] Small phpdoc improvement

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

I have been looking for a way to emulate `$_REQUEST` in Symfony, and I always thought the `get` method is useless for that, because it only looks at some custom routing stuff, GET and whatever BODY might be. Only today I actually looked at the source code and found out that it's actually (almost) doing what I was looking for, i.e. check `$_GET`, and then `$_POST`. So I figured it would be good to be a bit more explicit in the phpdoc (analoguous to the phpdoc for `$request->request`, which says "Request body parameters ($_POST).").

Commits
-------

a53f256b4b Small phpdoc imporvement
2021-04-30 14:05:50 +02:00
Roman Martinuk
f1b95d3c93 [Filesystem] fix readlink for Windows 2021-04-30 11:41:09 +03:00
Robin Chalas
9b1e941fbe bug #40993 [Security] [Security/Core] fix checking for bcrypt (nicolas-grekas)
This PR was merged into the 4.4 branch.

Discussion
----------

[Security] [Security/Core] fix checking for bcrypt

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

Spotted while working on #40920

Because of the logic in the constructor, if bcrypt is used, it's not cast to string.

Commits
-------

f01ea99254 [Security/Core] fix checking for bcrypt
2021-04-29 22:40:24 +02:00
Nicolas Grekas
f01ea99254 [Security/Core] fix checking for bcrypt 2021-04-29 20:10:21 +02:00
flack
a53f256b4b Small phpdoc imporvement 2021-04-29 15:01:54 +02:00
Fabien Potencier
061ac77773 bug #40923 [Yaml] expose references detected in inline notation structures (xabbuh)
This PR was merged into the 4.4 branch.

Discussion
----------

[Yaml] expose references detected in inline notation structures

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

Commits
-------

6d7d3fb520 expose references detected in inline notation structures
2021-04-29 14:36:56 +02:00
Nyholm
92a61b1cf6
[Translation] Set default locale for IdentityTranslatorTest 2021-04-28 08:59:52 +02:00
Alexander M. Turek
a88c7fa0eb bug #40964 [HttpFoundation] Fixes for PHP 8.1 deprecations (jrmajor)
This PR was merged into the 4.4 branch.

Discussion
----------

[HttpFoundation] Fixes for PHP 8.1 deprecations

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

Fixes passing `null` to non-nullable arguments.

Commits
-------

10be072b2b [HttpFoundation] Fixes for PHP 8.1 deprecations
2021-04-27 20:16:24 +02:00
Jeremiasz Major
10be072b2b
[HttpFoundation] Fixes for PHP 8.1 deprecations 2021-04-27 18:57:06 +02:00
Nyholm
b306bdb524
minor #40962 [Mime] DataPart: remove confusing fix-me comment (dmaicher)
This PR was merged into the 4.4 branch.

Discussion
----------

[Mime] DataPart: remove confusing fix-me comment

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

I don't think this comment is correct? There is an exception thrown [below](https://github.com/symfony/symfony/blob/4.4/src/Symfony/Component/Mime/Part/DataPart.php#L60).

Commits
-------

72493c6acf [Mime] DataPart: remove confusing fix-me comment
2021-04-27 17:37:43 +02:00
David Maicher
72493c6acf
[Mime] DataPart: remove confusing fix-me comment 2021-04-27 16:58:50 +02:00
Alexander M. Turek
84b03c135d minor #40932 [CI] Make sure to restore default locale (Nyholm)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[CI] Make sure to restore default locale

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

Whenever we have a test that do `\Locale::setDefault()` we must make sure to restore it to the original value.

Commits
-------

a5afe47ccf [CI] Make sure to restore default locale
2021-04-23 23:06:32 +02:00
Nyholm
a5afe47ccf [CI] Make sure to restore default locale 2021-04-23 23:06:14 +02:00
Christian Flothmann
6d7d3fb520 expose references detected in inline notation structures 2021-04-23 14:09:37 +02:00
Christian Flothmann
6c7abd1380 minor #40924 [Yaml] make fabbot happy (xabbuh)
This PR was merged into the 4.4 branch.

Discussion
----------

[Yaml] make fabbot happy

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

Commits
-------

9826c05928 make fabbot happy
2021-04-23 14:08:29 +02:00
Christian Flothmann
9826c05928 make fabbot happy 2021-04-23 13:57:46 +02:00
Christian Flothmann
df6b1ebf78 bug #40514 [Yaml] Allow tabs as separators between tokens (bertramakers)
This PR was merged into the 4.4 branch.

Discussion
----------

[Yaml] Allow tabs as separators between tokens

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

As described in #40507, the Yaml spec allows tabs as whitespace characters between tokens. However, the Yaml parser crashes on this as it only expects spaces after the colon. https://yaml.org/spec/1.2/spec.html#id2778241

While I'm not a huge fan of it personally, it's an issue when a different linter tells us that a given YAML file with content that we have little control over has valid syntax in an unrelated check, and then our app crashes because it cannot be parsed after all.

Commits
-------

9a130ae93e Fix issue 40507: Tabs as separators between tokens
2021-04-23 09:45:19 +02:00
Bert Ramakers
9a130ae93e Fix issue 40507: Tabs as separators between tokens 2021-04-23 09:44:00 +02:00
Nicolas Grekas
f8518ca16a bug #40882 [Cache] phpredis: Added full TLS support for RedisCluster (jackthomasatl)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[Cache] phpredis: Added full TLS support for RedisCluster

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

This Pr bridges the gap for full TLS support when using phpredis driver implementation of TLS.

Adds the 'ssl' options array for cache configuration when using RedisCluster
https://www.php.net/manual/en/context.ssl.php

Switches directed node commands from using individual \Redis connections to using the recommended implementation from the phpredis documentation:
https://github.com/phpredis/phpredis/blob/develop/cluster.markdown#directed-node-commands

This pr will enable compatibility with Amazon ElastiCache redis cluster mode using In Transit encryption (TLS) using the phpredis driver, Supports tagging & binary data types.

Commits
-------

a1e0408d08 [Cache] phpredis: Added full TLS support for RedisCluster
2021-04-23 09:10:02 +02:00
Jack Thomas
a1e0408d08 [Cache] phpredis: Added full TLS support for RedisCluster 2021-04-23 09:09:57 +02:00
Alexander M. Turek
2dd8445198 minor #40867 [VarDumper] Add PHP 8.1 enums tests (shiftby)
This PR was merged into the 4.4 branch.

Discussion
----------

[VarDumper] Add PHP 8.1 enums tests

VarDumper component already supports PHP 8.1 enums, but didn't have tests

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

VarDumper component already supports PHP 8.1 enums, but it didn't have tests.

```php
enum UnitEnumFixture {
    case Hearts;
    case Diamonds;
    case Clubs;
    case Spades;
}

dump(UnitEnumFixture::Hearts);
```
```
Symfony\Component\VarDumper\Tests\Fixtures\UnitEnumFixture {#435
  +name: "Hearts"
}
```

```php
enum BackedEnumFixture: string {
    case Hearts = 'H';
    case Diamonds = 'D';
    case Clubs = 'C';
    case Spades = 'S';
}

dump(BackedEnumFixture::Hearts);
```
```
Symfony\Component\VarDumper\Tests\Fixtures\BackedEnumFixture {#157
  +name: "Hearts"
  +value: "H"
}
```

Commits
-------

9a2a02710a [VarDumper] Add PHP 8.1 enums tests
2021-04-19 16:06:43 +02:00
Maxim Dovydenok
9a2a02710a [VarDumper] Add PHP 8.1 enums tests
VarDumper component already supports PHP 8.1 enums, but didn't have tests
2021-04-19 16:36:17 +03:00
Fabien Potencier
a24f389f6e minor #40833 [Console] added phpdocs to InputOption constants (clxmstaab)
This PR was submitted for the 5.x branch but it was squashed and merged into the 4.4 branch instead.

Discussion
----------

[Console] added phpdocs to InputOption constants

| Q             | A
| ------------- | ---
| Branch?       | 5.x for features / 4.4 or 5.2 for bug fixes <!-- 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 <!-- required for new features -->

This PR adds phpdocs to the `InputOption` constants. The docs itself were copied over from the docs on https://symfony.com/doc/current/console/input.html#using-command-options.

Over and over again people (including myself) confuse the different available constants.
having the meaning carried with the implementation should help to use the one which actually fits the use-case.

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

9f124f6278 [Console] : added phpdocs to InputOption constants
2021-04-16 19:32:32 +02:00
Markus Staab
9f124f6278 [Console] : added phpdocs to InputOption constants 2021-04-16 19:32:19 +02:00