Commit Graph

54576 Commits

Author SHA1 Message Date
Fabien Potencier
775fa720ea minor #40983 [Mailer] Move CHANGELOG entry (OskarStark)
This PR was merged into the 5.3-dev branch.

Discussion
----------

[Mailer] Move CHANGELOG entry

| Q             | A
| ------------- | ---
| Branch?       | 5.x
| 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 #... <!-- 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 -->

This entry belongs to the bridge, not the component

Commits
-------

4c0f078c91 [Mailer] Move CHANGELOG entry
2021-04-29 14:26:12 +02:00
Roman Anasal
a95bbaaaef [TwigBridge] Fix HTML for translatable custom-file label in Bootstrap 4 theme
Bootstraps allows to translate the label of the button of a custom-file
input with SCSS variables depending on the lang attribute of the
*input*.
This attribute was set on the label instead and thus had no effect.
2021-04-29 13:03:05 +02:00
Oskar Stark
4c0f078c91 [Mailer] Move CHANGELOG entry 2021-04-29 11:19:46 +02:00
Alexander M. Turek
90e419d0de minor #40968 [Config] Remove unused sprintf + coding standards (HypeMC)
This PR was merged into the 5.3-dev branch.

Discussion
----------

[Config] Remove unused sprintf + coding standards

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

A few things I noticed, redundant `sprintf` and variable and coding standards.

Commits
-------

17479e2bb5 Minor code cleanup
2021-04-28 23:13:43 +02:00
Alexander M. Turek
a94de9e012 minor #40967 [Translation] [Loco] Remove SCHEME const (OskarStark)
This PR was merged into the 5.3-dev branch.

Discussion
----------

[Translation] [Loco] Remove SCHEME const

| Q             | A
| ------------- | ---
| Branch?       | 5.x
| 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 #... <!-- 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 -->

For consistency, we do it this way in mailer and notifier

cc `@welcoMattic`

Commits
-------

34be4a5120 [Translation] [Loco] Remove SCHEME const
2021-04-28 14:03:52 +02:00
Jordi Boggiano
a942b5f684
Avoid regenerating the remember me token if it is still fresh 2021-04-28 13:42:03 +02:00
HypeMC
17479e2bb5 Minor code cleanup 2021-04-28 09:57:32 +02:00
Oskar Stark
01602ef842 bug #40956 [Config] [ConfigBuilder] Set FQCN as properties type instead of class name (MatTheCat)
This PR was squashed before being merged into the 5.3-dev branch.

Discussion
----------

[Config] [ConfigBuilder] Set FQCN as properties type instead of class name

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

Commits
-------

e9aa1c5771 [Config] [ConfigBuilder] Set FQCN as properties type instead of class name
2021-04-28 09:41:38 +02:00
MatTheCat
e9aa1c5771 [Config] [ConfigBuilder] Set FQCN as properties type instead of class name 2021-04-28 09:41:32 +02:00
Nyholm
92a61b1cf6
[Translation] Set default locale for IdentityTranslatorTest 2021-04-28 08:59:52 +02:00
Oskar Stark
34be4a5120 [Translation] [Loco] Remove SCHEME const 2021-04-28 08:48:47 +02:00
Tobias Schultze
29e5bde6c0 [Messenger] fix manual amqp setup when autosetup disabled 2021-04-28 00:28:04 +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
Pavel Kirpitsov
838f36b09f [Notifier] [Bridge] Store message id for slack transport's SendMessage 2021-04-27 20:16:47 +03:00
Jeremiasz Major
10be072b2b
[HttpFoundation] Fixes for PHP 8.1 deprecations 2021-04-27 18:57:06 +02:00
Nyholm
69de4d2225
Merge branch '5.2' into 5.x
* 5.2:
  run tests against doctrine/persistence 2.1
2021-04-27 18:10:18 +02:00
Nyholm
00764dd05e
minor #40946 [DoctrineBridge] run tests against doctrine/persistence 2.1 (xabbuh)
This PR was merged into the 5.2 branch.

Discussion
----------

[DoctrineBridge] run tests against doctrine/persistence 2.1

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

Commits
-------

c8916f20b3 run tests against doctrine/persistence 2.1
2021-04-27 18:03:41 +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
Nyholm
dc9648adb0
minor #40960 [Translation] [Loco] Simplify namespace (OskarStark)
This PR was merged into the 5.3-dev branch.

Discussion
----------

[Translation] [Loco] Simplify namespace

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

Based on https://github.com/symfony/symfony/pull/40945#discussion_r620058173 (`@nicolas`-grekas )

Commits
-------

e6af3c2572 [Translation] [Loco] Simplify namespace
2021-04-27 17:35:39 +02:00
Oskar Stark
e6af3c2572 [Translation] [Loco] Simplify namespace 2021-04-27 17:24:37 +02:00
David Maicher
72493c6acf
[Mime] DataPart: remove confusing fix-me comment 2021-04-27 16:58:50 +02:00
Oskar Stark
63496dfdc6 minor #40928 [CI] Sort packages by length to match modified package better (Nyholm)
This PR was merged into the 5.3-dev branch.

Discussion
----------

[CI] Sort packages by length to match modified package better

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

Given the build error in #40927, I saw that we match "modified packages" wrong. The script things we modified `symfony/translation` rather than the new bridge. This is because we are using a simple [string matchning](18658a29a3/.github/get-modified-packages.php (L24)). If we sort the packages by length, we make sure we match the most detailed (longest) string first.

Commits
-------

f7a0bd1047 [CI] Sort packages by length to match modified package better
2021-04-27 16:46:31 +02:00
Oskar Stark
c78358fac8 minor #40944 [Translation] Use proven DSN class from Notifier and rename package (OskarStark)
This PR was merged into the 5.3-dev branch.

Discussion
----------

[Translation] Use proven DSN class from Notifier and rename package

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

This class is already in use, no need to introduce it as experimental

cc `@welcoMattic`

Commits
-------

a7979c44de [Translation] Use proven DSN class from Notifier
2021-04-27 16:39:13 +02:00
Nyholm
f7a0bd1047
[CI] Sort packages by length to match modified package better 2021-04-27 16:33:02 +02:00
Alexander M. Turek
5506f2a115 bug #40950 [Config] Remove double semicolons from autogenerated config classes (HypeMC)
This PR was squashed before being merged into the 5.3-dev branch.

Discussion
----------

[Config] Remove double semicolons from autogenerated config classes

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

In some cases, the autogenerated config classes contain double semicolons:

![image](https://user-images.githubusercontent.com/2445045/116090262-f4b03200-a6a3-11eb-9cdd-135e9dbac084.png)

Commits
-------

c7163b32c2 [Config] Remove double semicolons from autogenerated config classes
2021-04-27 14:08:31 +02:00
HypeMC
c7163b32c2 [Config] Remove double semicolons from autogenerated config classes 2021-04-27 14:08:11 +02:00
Oskar Stark
a7979c44de [Translation] Use proven DSN class from Notifier
This class is already in use, no need to introduce it as experimental
2021-04-27 11:00:44 +02:00
Alexander M. Turek
88abb39b92 bug #40903 [Config] Builder: Remove typehints and allow for EnvConfigurator (Nyholm)
This PR was merged into the 5.3-dev branch.

Discussion
----------

[Config] Builder: Remove typehints and allow for EnvConfigurator

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

When [writing documentation](https://github.com/symfony/symfony-docs/pull/15269#discussion_r617887301) we found that we don't really support environment variables in the leaves. Ie, we expect a boolean but you provide `"%env(ENABLE_FOO)%"`

This PR will also introduce `ParamConfigurator` to allow parameters to be passed as config.

The changes to the generated code:

```diff
    /**
+    * `@param` bool|ParamConfigurator $value
     * `@default` false
     * `@return` $this
     */
-   public function enabled(bool $value): self
+   public function enabled($value): self
    {
        $this->enabled = $value;

        return $this;
    }
```

Commits
-------

59b79d35a7 [Config] Builder: Remove typehints and allow for EnvConfigurator
2021-04-26 18:58:52 +02:00
Javier Eguiluz
1e4c7d9c5d [FrameworkBundle] Make debug:event-dispatcher search case insensitive 2021-04-26 16:11:51 +02:00
Christian Flothmann
c8916f20b3 run tests against doctrine/persistence 2.1 2021-04-25 20:22:14 +02:00
Maciej Zgadzaj
b7658aac3f PhpDocExtractor: Handle "true" and "false" property types 2021-04-25 11:55:28 +02:00
Fabien Potencier
896f4a6eb6 minor #40915 [PasswordHasher] fix copy paste typos from UserPasswordEncoderInterface (mhujer)
This PR was merged into the 5.3-dev branch.

Discussion
----------

[PasswordHasher] fix copy paste typos from UserPasswordEncoderInterface

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

Fix typos introduced when extracting the PasswordHasher component from `UserPasswordEncoderInterface` abeb8e4ca9/src/Symfony/Component/Security/Core/Encoder/UserPasswordEncoderInterface.php (L36)

Discovered in 5.3.0BETA1.

Commits
-------

dfc3584fb7 [PasswordHasher] fix copy paste typos from UserPasswordEncoderInterface
2021-04-25 08:41:31 +02:00
Nyholm
59b79d35a7
[Config] Builder: Remove typehints and allow for EnvConfigurator 2021-04-24 19:19:31 +02:00
Alexander M. Turek
84a514c4b1 Merge branch '5.2' into 5.x
* 5.2:
  [DependencyInjection] Add missing bool type in procesValue()
  [CI] Make sure to restore default locale
2021-04-24 16:39:57 +02:00
Alexander M. Turek
ef17a59096 Merge branch '4.4' into 5.2
* 4.4:
  [CI] Make sure to restore default locale
2021-04-24 16:39:13 +02:00
Alexander M. Turek
a24590d824 minor #40934 [Translation] [CI] Specify terminal width (Nyholm)
This PR was merged into the 5.3-dev branch.

Discussion
----------

[Translation] [CI] Specify terminal width

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

This is an alternative to #40933. It will force to use 121 (120 max) characters as width.

Commits
-------

d51f7f6a75 [Translation] [CI] Specify terminal width
2021-04-24 16:37:14 +02:00
Alexander M. Turek
cef2f647b9 minor #40936 [DependencyInjection] Add missing bool type in procesValue() (TomasVotruba)
This PR was submitted for the 5.x branch but it was merged into the 5.2 branch instead.

Discussion
----------

[DependencyInjection] Add missing bool type in procesValue()

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

This method is the only one missing `bool` type. Inside the method is used parent call, that has `bool` type already, so nothing else can be used in it.

![image](https://user-images.githubusercontent.com/924196/115951249-0052fb80-a4e0-11eb-8ee5-601b1d90038f.png)

Commits
-------

e0f8fe837d [DependencyInjection] Add missing bool type in procesValue()
2021-04-24 16:32:33 +02:00
Tomas Votruba
e0f8fe837d [DependencyInjection] Add missing bool type in procesValue() 2021-04-24 16:32:26 +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
Nyholm
d51f7f6a75
[Translation] [CI] Specify terminal width 2021-04-23 19:49:15 +02:00
Alexander M. Turek
a9d582d681 Merge branch '5.2' into 5.x
* 5.2:
  make fabbot happy
  use correct spelling when accessing the SMTP php.ini value
  Fix issue 40507: Tabs as separators between tokens
  [Cache] phpredis: Added full TLS support for RedisCluster
  [DependencyInjection][AliasDeprecatedPublicServicesPass] Noop when the service is private
2021-04-23 18:57:12 +02:00
Alexander M. Turek
546f3b61ed Merge branch '4.4' into 5.2
* 4.4:
  make fabbot happy
  Fix issue 40507: Tabs as separators between tokens
  [Cache] phpredis: Added full TLS support for RedisCluster
2021-04-23 18:56:33 +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
f1ac7a83d7 bug #40919 [Mailer] use correct spelling when accessing the SMTP php.ini value (xabbuh)
This PR was merged into the 5.2 branch.

Discussion
----------

[Mailer] use correct spelling when accessing the SMTP php.ini value

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

Commits
-------

b6f8ed69ec use correct spelling when accessing the SMTP php.ini value
2021-04-23 13:35:25 +02:00
Christian Flothmann
b6f8ed69ec use correct spelling when accessing the SMTP php.ini value 2021-04-23 13:25:09 +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