Commit Graph

49362 Commits

Author SHA1 Message Date
Nicolas Grekas
7269a915f5 bug #42084 [WebProfilerBundle] Fix the values of some CSS properties (javiereguiluz)
This PR was merged into the 4.4 branch.

Discussion
----------

[WebProfilerBundle] Fix the values of some CSS properties

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

You can check the valid values of these properties at:

* https://developer.mozilla.org/en-US/docs/Web/CSS/max-width
* https://developer.mozilla.org/en-US/docs/Web/CSS/min-height

Commits
-------

e335c28d44 [WebProfilerBundle] Fix the values of some CSS properties
2021-07-13 11:57:06 +02:00
Nicolas Grekas
02c30eac47 minor #42085 Fix minor typos (javiereguiluz)
This PR was merged into the 4.4 branch.

Discussion
----------

Fix minor typos

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

Commits
-------

bed9cd9176 Fix minor typos
2021-07-13 11:56:25 +02:00
Nicolas Grekas
becf11aa14 Fix tests 2021-07-13 11:55:30 +02:00
Javier Eguiluz
bed9cd9176 Fix minor typos 2021-07-13 11:47:43 +02:00
Nicolas Grekas
bafecf2b49 [Contracts] Add missing @return annotations 2021-07-13 11:33:53 +02:00
Javier Eguiluz
e335c28d44 [WebProfilerBundle] Fix the values of some CSS properties 2021-07-13 11:24:46 +02:00
Robin Chalas
a0496bd748
bug #42079 [FrameworkBundle] Fixed file operations in Sodium vault seal (javiereguiluz)
This PR was merged into the 4.4 branch.

Discussion
----------

[FrameworkBundle] Fixed file operations in Sodium vault seal

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

Commits
-------

e31f8c52db [FrameworkBundle] Fixed file operations in Sodium vault seal
2021-07-13 10:02:45 +02:00
Javier Eguiluz
e31f8c52db [FrameworkBundle] Fixed file operations in Sodium vault seal 2021-07-13 09:55:49 +02:00
Nicolas Grekas
7253299169 bug #42054 [DoctrineBridge] fix setting default mapping type to attribute/annotation on php 8/7 respectively (nicolas-grekas)
This PR was merged into the 4.4 branch.

Discussion
----------

[DoctrineBridge] fix setting default mapping type to attribute/annotation on php 8/7 respectively

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

This PR fixes a DX issue with the default recipe: right now, the mapping type has to be explicitly defined. This forces [the default recipe](https://github.com/symfony/recipes/blob/master/doctrine/doctrine-bundle/2.4/config/packages/doctrine.yaml#L15) to stick to "annotation", while the world is moving to "attribute".

Commits
-------

f06f85fbd8 [DoctrineBridge] fix setting default mapping type to attribute/annotation on php 8/7 respectively
2021-07-12 14:50:16 +02:00
Nicolas Grekas
f06f85fbd8 [DoctrineBridge] fix setting default mapping type to attribute/annotation on php 8/7 respectively 2021-07-11 11:02:49 +02:00
Fabien Potencier
7385bc88d4 bug #42049 [TwigBridge] do not render the same label id attribute twice (xabbuh)
This PR was merged into the 4.4 branch.

Discussion
----------

[TwigBridge] do not render the same label id attribute twice

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

Commits
-------

ceee81e33d do not render the same label id attribute twice
2021-07-10 18:05:06 +02:00
Christian Flothmann
ceee81e33d do not render the same label id attribute twice 2021-07-10 14:16:00 +02:00
Nicolas Grekas
fa182e613a minor #42047 clean up remaining event mocks (xabbuh)
This PR was merged into the 4.4 branch.

Discussion
----------

clean up remaining event mocks

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

Commits
-------

f09bd17ba1 clean up remaining event mocks
2021-07-10 10:50:50 +02:00
Christian Flothmann
f09bd17ba1 clean up remaining event mocks 2021-07-10 10:41:57 +02:00
Nicolas Grekas
120f3d6a73 minor #42043 do not mock the Request class (xabbuh)
This PR was merged into the 4.4 branch.

Discussion
----------

do not mock the Request class

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

Commits
-------

968809c2f1 do not mock the Request class
2021-07-09 17:04:35 +02:00
Christian Flothmann
968809c2f1 do not mock the Request class 2021-07-09 16:49:07 +02:00
Nicolas Grekas
068429ed3c bug #42032 [HttpKernel] recover from failed deserializations (xabbuh)
This PR was merged into the 4.4 branch.

Discussion
----------

[HttpKernel] recover from failed deserializations

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

Commits
-------

d10b3a63e5 recover from failed deserializations
2021-07-09 15:41:39 +02:00
Nicolas Grekas
305e2105cc minor #42040 do not mock event classes (xabbuh)
This PR was merged into the 4.4 branch.

Discussion
----------

do not mock event classes

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

Commits
-------

8da1969afc do not mock event classes
2021-07-09 15:36:43 +02:00
Christian Flothmann
8da1969afc do not mock event classes 2021-07-09 13:17:08 +02:00
Christian Flothmann
d10b3a63e5 recover from failed deserializations 2021-07-08 13:32:35 +02:00
Fabien Potencier
09814d5548 minor #42007 [GHA] Clarify some bits in the deps=high script (wouterj)
This PR was merged into the 4.4 branch.

Discussion
----------

[GHA] Clarify some bits in the deps=high script

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

I had some difficulty understanding how flipped tests worked. Luckily, `@nicolas`-grekas was available to answer some questions. However, I'm sure that I've forgotten the logic in about a week time, so I think it's worth clarifying the code a bit (but feel free to close if it's just me).

Commits
-------

ff08dcaca6 [GHA] Clarify some bits in the deps=high script
2021-07-08 11:16:39 +02:00
Fabien Potencier
57e3c5f9dc minor #42028 [ErrorHandle] Remove a link from the exception page (javiereguiluz)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[ErrorHandle] Remove a link from the exception page

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

This link is causing lots of confusion to some people, who think that we provide free support for open source Symfony projects. That's why we've decided to remove this link. Thanks!

Commits
-------

387254ff5a [ErrorHandle] Remove a link from the exception page
2021-07-08 11:10:22 +02:00
Javier Eguiluz
387254ff5a [ErrorHandle] Remove a link from the exception page 2021-07-08 11:10:16 +02:00
Fabien Potencier
92a086c31c minor #42027 [Validator] Added Ukrainian translations (andrii-bodnar)
This PR was merged into the 4.4 branch.

Discussion
----------

[Validator] Added Ukrainian 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 #41838 <!-- 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 -->

Added some missing Ukrainian translations.

Commits
-------

b3c28ca02c [Validator] Added Ukrainian translations
2021-07-08 10:35:09 +02:00
Andrii Bodnar
b3c28ca02c [Validator] Added Ukrainian translations 2021-07-08 11:30:06 +03:00
Alexander M. Turek
38cb35ab07 minor #42018 [DomCrawler] Backport type fixes (derrabus)
This PR was merged into the 4.4 branch.

Discussion
----------

[DomCrawler] Backport type fixes

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

Discovered while working on #41981.

Commits
-------

6996988fe5 [DomCrawler] Backport type fixes
2021-07-07 19:13:11 +01:00
Alexander M. Turek
6996988fe5 [DomCrawler] Backport type fixes
Signed-off-by: Alexander M. Turek <me@derrabus.de>
2021-07-07 16:41:18 +01:00
Nicolas Grekas
45411891f2 [ExpressionLanguage] Fix test case 2021-07-07 15:22:05 +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
Wouter de Jong
ff08dcaca6 [GHA] Clarify some bits in the deps=high script 2021-07-06 18:29:48 +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
Nicolas Grekas
44f08fa121 CS fix 2021-07-04 11:32:05 +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