Commit Graph

49375 Commits

Author SHA1 Message Date
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
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
7e78fb1197 fix annot 2021-07-02 18:39:34 +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
Nicolas Grekas
3c72d518f5 minor #41948 [PhpUnitBridge] Avoid triggering the autoloader in Deprecation::isLegacy() (derrabus)
This PR was merged into the 4.4 branch.

Discussion
----------

[PhpUnitBridge] Avoid triggering the autoloader in Deprecation::isLegacy()

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

The low-deps tests are currently failing because Deprecation::isLegacy() keeps triggering the autoloader and might even do so while `DebugClassLoader` considers a failed autoload attempt as an error.

Commits
-------

b95dfede5f Avoid triggering the autoloader in Deprecation::isLegacy()
2021-07-02 18:03:29 +02:00
Alexander M. Turek
b95dfede5f Avoid triggering the autoloader in Deprecation::isLegacy()
Signed-off-by: Alexander M. Turek <me@derrabus.de>
2021-07-02 17:57:26 +02:00
Nicolas Grekas
cf0f3c9834 minor #41943 [4.4] Backport type fixes (nicolas-grekas)
This PR was merged into the 4.4 branch.

Discussion
----------

[4.4] Backport type fixes

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

And other changes made while preparing 6.0.

Commits
-------

e1afcb6de1 Backport type fixes
2021-07-02 17:08:37 +02:00
Nicolas Grekas
e1afcb6de1 Backport type fixes 2021-07-02 16:55:44 +02:00
Fabien Potencier
92013312f3 minor #41869 [Form] better form doc types to support static analysis (Tobion)
This PR was merged into the 4.4 branch.

Discussion
----------

[Form] better form doc types to support static analysis

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| 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        |

otherwise phpstan will complain in custom FormTypes like

```
class RegistrationFormType extends AbstractType
{
    public function buildForm(FormBuilderInterface $builder, array $options): void
`````

that it does not know what the iterable $builder and $options are about.

Commits
-------

56900d2b24 [Form] better form doc types to support static analysis
2021-07-02 12:25:11 +02:00
Fabien Potencier
2f7bad905c minor #41933 [DependencyInjection] Turn $defaultDeprecationTemplate into a constant (derrabus)
This PR was merged into the 4.4 branch.

Discussion
----------

[DependencyInjection] Turn $defaultDeprecationTemplate into a constant

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | https://github.com/symfony/symfony/pull/41928#discussion_r662277447
| License       | MIT
| Doc PR        | N/A

Commits
-------

936e399ff9 [DependencyInjection] Turn $defaultDeprecationTemplate into a constant
2021-07-02 12:20:15 +02:00
Fabien Potencier
fcf0a83682 minor #41934 [DependencyInjection] Fix doc blocks (derrabus)
This PR was merged into the 4.4 branch.

Discussion
----------

[DependencyInjection] Fix doc blocks

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

Two small backports from #41928.

Commits
-------

950b2e780c [DependencyInjection] Fix doc blocks
2021-07-02 10:56:36 +02:00
Fabien Potencier
d59f8ee1d5 minor #41939 uzb translation 4.4 version (shokhaa)
This PR was merged into the 4.4 branch.

Discussion
----------

uzb translation 4.4 version

| Q             | A
| ------------- | ---
| Branch?       | 5.4 for features / 4.4, 5.2 or 5.3 for bug fixes <!-- see below -->
| Bug fix?      | no
| New feature?  | yes <!-- 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 -->
<!--
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
-------

d73cd5071e uzb translation
2021-07-02 09:28:19 +02:00
shakhobiddin
d73cd5071e uzb translation 2021-07-02 12:15:12 +05:00
Alexander M. Turek
950b2e780c [DependencyInjection] Fix doc blocks
Signed-off-by: Alexander M. Turek <me@derrabus.de>
2021-07-01 23:39:28 +02:00
Alexander M. Turek
936e399ff9 [DependencyInjection] Turn $defaultDeprecationTemplate into a constant
Signed-off-by: Alexander M. Turek <me@derrabus.de>
2021-07-01 23:28:50 +02:00
Nicolas Grekas
713f73facc bug #41887 [PhpUnitBridge] Fix deprecation handler with PHPUnit 10 (YaFou)
This PR was merged into the 4.4 branch.

Discussion
----------

[PhpUnitBridge] Fix deprecation handler with PHPUnit 10

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #41580
| License       | MIT
| Doc PR        |
<!--
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
-->

With PHPUnit 10, a lot of classes and methods were refactored. This PR adds the support of PHPUnit 10 into the deprecation handler.

Commits
-------

5f90fb0fd6 [PhpUnitBridge] Fix deprecation handler with PHPUnit 10
2021-07-01 18:03:47 +02:00
YaFou
5f90fb0fd6 [PhpUnitBridge] Fix deprecation handler with PHPUnit 10 2021-07-01 18:03:36 +02:00
Alexander M. Turek
97d48476f7 minor #41929 Revert CI workaround for masterminds/html5 (derrabus)
This PR was merged into the 4.4 branch.

Discussion
----------

Revert CI workaround for masterminds/html5

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

The branches of `masterminds/html5` have been fixed, so we can revert our workaround.

Commits
-------

44ca13ef40 Revert CI workaround for masterminds/html5
2021-07-01 17:36:27 +02:00
Alexander M. Turek
44ca13ef40 Revert CI workaround for masterminds/html5
Signed-off-by: Alexander M. Turek <me@derrabus.de>
2021-07-01 16:52:12 +02:00
Nicolas Grekas
7c6c7b0331 Fix tests 2021-06-30 16:07:32 +02:00
Nicolas Grekas
780e746adb CS fix 2021-06-30 15:27:08 +02:00
Nicolas Grekas
6e3fa5a43f minor #41918 CS fixes (nicolas-grekas)
This PR was merged into the 4.4 branch.

Discussion
----------

CS fixes

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

With a rule hinted by `@julienfalque` in https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues/5785

Commits
-------

31e1a978f5 CS fixes
2021-06-30 15:05:30 +02:00
Nicolas Grekas
31e1a978f5 CS fixes 2021-06-30 15:02:00 +02:00
Fabien Potencier
ffb4795104 Bump Symfony version to 4.4.27 2021-06-30 10:22:49 +02:00
Fabien Potencier
8df2da89fb
Merge pull request #41913 from fabpot/release-4.4.26
released v4.4.26
2021-06-30 10:18:25 +02:00
Fabien Potencier
689e2967e5 Update VERSION for 4.4.26 2021-06-30 10:18:06 +02:00
Fabien Potencier
f5a5e5b108 Update CONTRIBUTORS for 4.4.26 2021-06-30 10:17:21 +02:00
Fabien Potencier
36dece58f7 Update CHANGELOG for 4.4.26 2021-06-30 10:15:30 +02:00
Fabien Potencier
43733f79f6 minor #41888 added missing Arabic translations (ELATTARIYassine)
This PR was merged into the 4.4 branch.

Discussion
----------

added missing Arabic translations

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| 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#...

Related to #41811

Commits
-------

f549d9cd9c added missing Arabic translations
2021-06-30 09:16:09 +02:00