Commit Graph

54184 Commits

Author SHA1 Message Date
Nicolas Grekas
7b3ce516a8 Fix bad merge 2021-07-07 15:13:40 +02:00
Nicolas Grekas
db20357bfb [Cache] fix bad merge 2021-07-07 14:43:50 +02:00
Nicolas Grekas
d008bd6878 Merge branch '4.4' into 5.2
* 4.4:
  [Cache] backport type fixes
2021-07-07 14:33:44 +02:00
Nicolas Grekas
d5f7460a96 minor #42016 [Cache] backport type fixes (nicolas-grekas)
This PR was merged into the 4.4 branch.

Discussion
----------

[Cache] backport type fixes

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

Backported from #42015

Commits
-------

a6a00915c3 [Cache] backport type fixes
2021-07-07 14:26:07 +02:00
Nicolas Grekas
a6a00915c3 [Cache] backport type fixes 2021-07-07 14:25:09 +02:00
Nicolas Grekas
33c661f631 minor #42014 [Cache] Remove MemcachedTrait (derrabus)
This PR was merged into the 5.2 branch.

Discussion
----------

[Cache] Remove MemcachedTrait

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

This trait is not used anywhere. It had been removed once, with #31760. But it resurfaced, presumably because of a bad merge. It is flagged as ``@internal``, so I think we can safely delete it.

Commits
-------

5fb4fd4694 [Cache] Remove MemcachedTrait
2021-07-07 13:24:28 +02:00
Alexander M. Turek
5fb4fd4694 [Cache] Remove MemcachedTrait
Signed-off-by: Alexander M. Turek <me@derrabus.de>
2021-07-07 11:25:12 +01:00
Wouter de Jong
ff08dcaca6 [GHA] Clarify some bits in the deps=high script 2021-07-06 18:29:48 +02:00
Alexander M. Turek
257666378c minor #41987 [Console] SymfonyStyle - add string type to confirm() $question by co… (TomasVotruba)
This PR was merged into the 5.2 branch.

Discussion
----------

[Console] SymfonyStyle - add string type to confirm() $question by co…

PR retargeted from Symfony 5.4: https://github.com/symfony/symfony/pull/41983

Inspired by & follow up to https://github.com/symfony/symfony/pull/41946 by `@nicolas`-grekas

<br>

This type is always string, see contract 5010ebdad9/src/Symfony/Component/Console/Style/StyleInterface.php (L102)

Also `ConfirmationQuestion` requires `string` strict type bellow

Probably forgotten during adding types everywhere in  https://github.com/symfony/symfony/pull/32318

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

Commits
-------

d0c337d524 [Console] SymfonyStyle - add string type to confirm() $question by contract
2021-07-05 20:31:41 +02:00
Nicolas Grekas
07060f46b7 Merge branch '4.4' into 5.2
* 4.4:
  cs fix
  [DependencyInjection][Console] tighten types
  [Lock] fix derivating semaphore from key
2021-07-05 15:28:55 +02:00
Nicolas Grekas
ba7e97d528 bug #41990 [Lock] fix derivating semaphore from key (nicolas-grekas)
This PR was merged into the 4.4 branch.

Discussion
----------

[Lock] fix derivating semaphore from key

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

Commits
-------

d9dea8d761 [Lock] fix derivating semaphore from key
2021-07-05 15:23:55 +02:00
Nicolas Grekas
ad48f2c00f cs fix 2021-07-05 15:22:54 +02:00
Fabien Potencier
2ed8a90653 minor #41992 [Console][DependencyInjection] tighten types (nicolas-grekas)
This PR was merged into the 4.4 branch.

Discussion
----------

[Console][DependencyInjection] tighten types

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

See to #41991

Commits
-------

a35a9bb7a0 [DependencyInjection][Console] tighten types
2021-07-05 14:24:03 +02:00
Nicolas Grekas
a35a9bb7a0 [DependencyInjection][Console] tighten types 2021-07-05 13:58:31 +02:00
Nicolas Grekas
d9dea8d761 [Lock] fix derivating semaphore from key 2021-07-05 13:39:04 +02:00
Tomas Votruba
d0c337d524
[Console] SymfonyStyle - add string type to confirm() $question by contract 2021-07-05 10:48:31 +02:00
Nicolas Grekas
ce2300a930 Merge branch '4.4' into 5.2
* 4.4:
  CS fix
  Missing translations from traits
2021-07-04 11:33:36 +02:00
Nicolas Grekas
44f08fa121 CS fix 2021-07-04 11:32:05 +02:00
Nicolas Grekas
5da049d9b0 Merge branch '4.4' into 5.2
* 4.4:
  Fix SkippedTestSuite
  [Console] Fix type annotation on InputInterface::hasArgument()
  Revert "minor #41949 [Console] fix type annotations on InputInterface (nicolas-grekas)"
  [EventDispatcher] Correct the called event listener method case
  Add missing translations for Japanese.
  Revert "bug #41952 [Console] fix handling positional arguments (nicolas-grekas)"
  [Security] Don't skip UserPasswordValidatorTest
  [DI] CS fix
  [Console] fix handling positional arguments
  [Validator] add translation for Vietnamese
  Add Bulgarian translation for the validator
2021-07-04 11:28:30 +02:00
Fabien Potencier
a224fa73b9 bug #40529 [Translation] Missing translations from traits (insekticid)
This PR was submitted for the 5.4 branch but it was merged into the 4.4 branch instead.

Discussion
----------

[Translation] Missing translations from traits

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #40528 <!-- 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 you use ->trans() in traits, your translations will be cleaned with translation:update --clean command

Affected all Symfony versions

Please write some tests for me, I took me long time to debug and repair this :(

![image](https://user-images.githubusercontent.com/177340/111880657-159eac80-89ad-11eb-803b-7c63c67b27b9.png)

Commits
-------

0d8737ff16 Missing translations from traits
2021-07-04 11:22:50 +02:00
Exploit.cz
0d8737ff16 Missing translations from traits 2021-07-04 11:22:43 +02:00
Fabien Potencier
7820f8d352 bug #41384 Fix SkippedTestSuite (jderusse)
This PR was merged into the 4.4 branch.

Discussion
----------

Fix SkippedTestSuite

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

Throwing a TestSkipped in a `setUpBeforeClass` si handled by PHP unit as a standard exception, leading to a generic exception  `Test skipped because of an error in hook method` (see https://github.com/symfony/symfony/pull/41380/checks?check_run_id=2645369759#step:14:165)

However phpunit is able to catch `SkippedTestSuiteError` in such situation.(https://github.com/sebastianbergmann/phpunit/blob/master/src/Framework/TestSuite.php#L438-L448)

This PR replaces `self::markTestSkipped` by `throw new SkippedTestSuiteError` (we don't have static method helper for this exception) in our `setUpBeforeClass` methods.

Commits
-------

6f2aa6d245 Fix SkippedTestSuite
2021-07-04 11:17:43 +02:00
Jérémy Derussé
6f2aa6d245 Fix SkippedTestSuite 2021-07-04 11:15:06 +02:00
Nicolas Grekas
2abf5a4399 bug #41966 [Console] Revert "bug #41952 fix handling positional arguments" (chalasr, nicolas-grekas)
This PR was merged into the 4.4 branch.

Discussion
----------

[Console] Revert "bug #41952  fix handling positional arguments"

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

Reverts #41952 as it breaks tests on 5.3 due to an implicit string cast:
We added the `string` typehint to the `$name` argument in 5.x, removing it now to allow for `string|int` would be a BC break which I don't think is worth it.

Commits
-------

6ac2776c47 [Console] Fix type annotation on InputInterface::hasArgument()
9928be05fe Revert "minor #41949 [Console] fix type annotations on InputInterface (nicolas-grekas)"
8fc58aaa45 Revert "bug #41952 [Console] fix handling positional arguments (nicolas-grekas)"
2021-07-04 11:14:03 +02:00
Nicolas Grekas
6ac2776c47 [Console] Fix type annotation on InputInterface::hasArgument() 2021-07-04 11:10:01 +02:00
Fabien Potencier
e1b0be34e8 bug #41905 [EventDispatcher] Correct the called event listener method case (JJsty1e)
This PR was submitted for the 5.4 branch but it was squashed and merged into the 4.4 branch instead.

Discussion
----------

[EventDispatcher] Correct the called event listener method case

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

when define an event listener,  if you don't specify a method, then the word case of the actual method maybe wrong, for example :

```yaml
services:
  my_kernel_envent_listeners:
        class: App\EventListener\KernelListener
        tags:
            - { name: kernel.event_listener, event: kernel.controller_arguments }
```
no `method` key at this tag, then actual method called is `onKernelControllerarguments`, actually it should be `onKernelControllerArguments`, the case of word 'arguments' should be upper.

ps: only event name that has dash(`_`) will be affected.

Commits
-------

29b4b76416 [EventDispatcher] Correct the called event listener method case
2021-07-04 11:02:28 +02:00
Nicolas Grekas
9928be05fe Revert "minor #41949 [Console] fix type annotations on InputInterface (nicolas-grekas)"
This reverts commit ed09dc138e, reversing
changes made to 7e78fb1197.
2021-07-04 11:02:18 +02:00
jaggle
29b4b76416 [EventDispatcher] Correct the called event listener method case 2021-07-04 11:02:13 +02:00
Fabien Potencier
b1cf295bf8 minor #41967 [Validator] Add missing translations for Japanese. (Ippey)
This PR was merged into the 4.4 branch.

Discussion
----------

[Validator] Add missing translations for Japanese.

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

This PR adds missing Japanese translations.

Commits
-------

603ea6af14 Add missing translations for Japanese.
2021-07-04 10:57:16 +02:00
Ippei Sumida
603ea6af14 Add missing translations for Japanese. 2021-07-04 16:20:26 +09:00
Robin Chalas
8fc58aaa45
Revert "bug #41952 [Console] fix handling positional arguments (nicolas-grekas)"
This reverts commit e93f8c0ad3, reversing
changes made to eb83be474c.
2021-07-04 00:48:29 +02:00
Robin Chalas
8519cb7ea5
minor #41964 [Security] Don't skip UserPasswordValidatorTest (chalasr)
This PR was merged into the 4.4 branch.

Discussion
----------

[Security] Don't skip UserPasswordValidatorTest

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

Commits
-------

629e6987e6 [Security] Don't skip UserPasswordValidatorTest
2021-07-03 23:38:01 +02:00
Robin Chalas
629e6987e6
[Security] Don't skip UserPasswordValidatorTest 2021-07-03 23:17:34 +02:00
Nicolas Grekas
46309e5814 [DI] CS fix 2021-07-03 21:19:39 +02:00
Nicolas Grekas
e93f8c0ad3 bug #41952 [Console] fix handling positional arguments (nicolas-grekas)
This PR was merged into the 4.4 branch.

Discussion
----------

[Console] fix handling positional arguments

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

Follow up of #41949

Commits
-------

fad17a95ea [Console] fix handling positional arguments
2021-07-03 21:16:28 +02:00
Nicolas Grekas
fad17a95ea [Console] fix handling positional arguments 2021-07-03 21:08:50 +02:00
Fabien Potencier
eb83be474c minor #41953 Add Bulgarian translation for the validator (I-Valchev)
This PR was merged into the 4.4 branch.

Discussion
----------

Add Bulgarian translation for the validator

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

Commits
-------

a812cea58a Add Bulgarian translation for the validator
2021-07-03 06:55:51 +02:00
Fabien Potencier
06351de7db minor #41957 [Validator] add translation for Vietnamese (vuphuong87)
This PR was merged into the 4.4 branch.

Discussion
----------

[Validator] add translation for Vietnamese

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

Commits
-------

4526a70969 [Validator] add translation for Vietnamese
2021-07-03 06:54:44 +02:00
Adrian Nguyen
4526a70969 [Validator] add translation for Vietnamese 2021-07-03 11:05:14 +07:00
Ivo Valchev
a812cea58a
Add Bulgarian translation for the validator 2021-07-02 21:08:39 +02:00
Nicolas Grekas
23af8dab8c Merge branch '4.4' into 5.2
* 4.4:
  [Console] fix type annotations on InputInterface
2021-07-02 19:00:48 +02:00
Nicolas Grekas
ed09dc138e minor #41949 [Console] fix type annotations on InputInterface (nicolas-grekas)
This PR was merged into the 4.4 branch.

Discussion
----------

[Console] fix type annotations on InputInterface

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

`hasArgument` already accepts `string|int`.
Makes sense?

Commits
-------

ab76477012 [Console] fix type annotations on InputInterface
2021-07-02 18:57:09 +02:00
Nicolas Grekas
ce68f0152b fix backport 2021-07-02 18:54:07 +02:00
Nicolas Grekas
136bbb09fa Merge branch '4.4' into 5.2
* 4.4:
  fix annot
2021-07-02 18:39:40 +02:00
Nicolas Grekas
7e78fb1197 fix annot 2021-07-02 18:39:34 +02:00
Nicolas Grekas
43fc6b3b37 minor #41946 [5.2] Backport type fixes (nicolas-grekas)
This PR was merged into the 5.2 branch.

Discussion
----------

[5.2] Backport type fixes

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

Commits
-------

6f6c1a1661 Backport type fixes
2021-07-02 18:37:17 +02:00
Nicolas Grekas
b57eaf4907 Merge branch '4.4' into 5.2
* 4.4:
  Fix CS
  Avoid triggering the autoloader in Deprecation::isLegacy()
2021-07-02 18:36:34 +02:00
Nicolas Grekas
6f6c1a1661 Backport type fixes 2021-07-02 18:35:09 +02:00
Nicolas Grekas
ab76477012 [Console] fix type annotations on InputInterface 2021-07-02 18:25:02 +02:00
Alexander M. Turek
0e5db3dcfa Fix CS
Signed-off-by: Alexander M. Turek <me@derrabus.de>
2021-07-02 18:06:08 +02:00