Commit Graph

43058 Commits

Author SHA1 Message Date
Nicolas Grekas
b9c743c163 minor #39728 stop using void in test files (xabbuh)
This PR was merged into the 5.1 branch.

Discussion
----------

stop using void in test files

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

Commits
-------

8f9f370f07 stop using void in test files
2021-01-05 19:31:25 +01:00
Nicolas Grekas
dcd3bad72a minor #39729 [Uid] Use the Uuid constructor when reconstructing an Ulid from its RFC-4122 version (fancyweb)
This PR was merged into the 5.1 branch.

Discussion
----------

[Uid] Use the Uuid constructor when reconstructing an Ulid from its RFC-4122 version

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

Ref https://github.com/symfony/polyfill/issues/323

In my scenario, I'm doing `Ulid::fromString('0164129e-c96f-eb1a-f011-57cf56e0c559')`. When we reach the modified line, we already know the provided `$ulid` string is an rfc-4122 valid uuid so we don't need to call `fromString` (I guess) + we don't care of the version, we just want the binary content. That fixes the referenced issue in my case because the missing constant is consequently not loaded.

Commits
-------

44392cbc30 [Uid] Use the Uuid constructor when reconstructing an Ulid from its RFC-4122 version
2021-01-05 19:30:56 +01:00
Thomas Calvet
f0fafec019 [Uid] Hardcode UuidV3 & UuidV5 TYPE conditional constants 2021-01-05 18:34:45 +01:00
Thomas Calvet
44392cbc30 [Uid] Use the Uuid constructor when reconstructing an Ulid from its RFC-4122 version 2021-01-05 18:11:49 +01:00
Christian Flothmann
8f9f370f07 stop using void in test files 2021-01-05 16:52:51 +01:00
Christian Flothmann
900cb0eece Merge branch '5.1' into 5.2
* 5.1:
  fix code style
  Remove full head content in HTML to text converter
  apply the sort callback on the whole search result
2021-01-05 16:30:03 +01:00
Christian Flothmann
d4620a7d51 minor #39714 fix code style (xabbuh)
This PR was merged into the 5.1 branch.

Discussion
----------

fix code style

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

Commits
-------

08fb696dbc fix code style
2021-01-05 16:28:24 +01:00
Christian Flothmann
29d2da572e parse cookie values containing the equal sign 2021-01-05 15:30:54 +01:00
Jérémy Derussé
da5c39ec2e
Move AuthenticationSuccessEvent outside try/catch block 2021-01-05 11:29:05 +01:00
Christian Flothmann
a33850e838 make some time dependent tests more resilient 2021-01-05 10:09:27 +01:00
Christian Flothmann
08fb696dbc fix code style 2021-01-05 08:52:01 +01:00
Fabien Potencier
e1b81d513e bug #39716 [DependencyInjection] do not break when loading schemas from network paths on Windows (xabbuh)
This PR was merged into the 4.4 branch.

Discussion
----------

[DependencyInjection] do not break when loading schemas from network paths on Windows

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

Commits
-------

acbafe889d do not break when loading schemas from network paths on Windows
2021-01-05 07:35:25 +01:00
Fabien Potencier
b302ebc619 Merge branch '4.4' into 5.1
* 4.4:
  Remove full head content in HTML to text converter
  apply the sort callback on the whole search result
2021-01-05 07:22:18 +01:00
Fabien Potencier
1dead9a518 bug #39703 [Finder] apply the sort callback on the whole search result (xabbuh)
This PR was merged into the 4.4 branch.

Discussion
----------

[Finder] apply the sort callback on the whole search result

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

Commits
-------

126105146f apply the sort callback on the whole search result
2021-01-05 07:04:52 +01:00
Andrea Ruggiero
9e6baee9f3
Remove full head content in HTML to text converter
When extracting text from HTML part all the content between opening and closing tag should be removed
2021-01-04 22:15:57 +01:00
Christian Flothmann
acbafe889d do not break when loading schemas from network paths on Windows 2021-01-04 20:26:31 +01:00
Christian Flothmann
47385a150f allow HttpKernel 5.x 2021-01-04 19:39:57 +01:00
Nicolas Grekas
85af7a2974 bug #39672 [FrameworkBundle] Fix UidNormalizer priority (fancyweb)
This PR was merged into the 5.2 branch.

Discussion
----------

[FrameworkBundle] Fix UidNormalizer priority

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

`AbstractUid` implements `\JsonSerializable`. `JsonSerializableNormalizer` has a priority of `-900`, so it's actually this normalizer that is used instead of the good one. It does not change the result but it adds an extra layer.

Commits
-------

1c652a7649 [FrameworkBundle] Fix UidNormalizer priority
2021-01-04 19:02:28 +01:00
Nicolas Grekas
1e8fe94fff minor #39695 [PropertyAccess] throw type error when incompatible types are passed (xabbuh)
This PR was merged into the 5.2 branch.

Discussion
----------

[PropertyAccess] throw type error when incompatible types are passed

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

Commits
-------

4c5cff6558 throw type error when incompatible types are passed
2021-01-04 19:01:42 +01:00
Nicolas Grekas
51d2da706e Merge branch '5.1' into 5.2
* 5.1:
  Cleanup CI scripts
  fix code style
  fix code style
  take query and request parameters into account when matching routes
  mistake
  fix tests to run assertions on returned Crawler instances
  propagate groups to nested constraints
2021-01-04 18:59:10 +01:00
Nicolas Grekas
929b4b5903 bug #39649 [Validator] propagate groups to nested constraints (xabbuh)
This PR was merged into the 5.1 branch.

Discussion
----------

[Validator] propagate groups to nested constraints

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

Commits
-------

13a4610824 propagate groups to nested constraints
2021-01-04 18:36:57 +01:00
Christian Flothmann
87b1e11ebb Merge branch '4.4' into 5.1
* 4.4:
  Cleanup CI scripts
  fix code style
  fix code style
  take query and request parameters into account when matching routes
  mistake
  fix tests to run assertions on returned Crawler instances
2021-01-04 18:34:17 +01:00
Nicolas Grekas
426bf9640a minor #39691 [DomCrawler] fix tests to run assertions on returned Crawler instances (xabbuh)
This PR was merged into the 4.4 branch.

Discussion
----------

[DomCrawler] fix tests to run assertions on returned Crawler instances

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

Commits
-------

1d0c91629a fix tests to run assertions on returned Crawler instances
2021-01-04 18:30:04 +01:00
Nicolas Grekas
e8d5d29c30 bug #39708 [WebProfilerBundle] take query and request parameters into account when matching routes (xabbuh)
This PR was merged into the 4.4 branch.

Discussion
----------

[WebProfilerBundle] take query and request parameters into account when matching routes

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

Commits
-------

28b6051f53 take query and request parameters into account when matching routes
2021-01-04 18:14:21 +01:00
Nicolas Grekas
c9ae215e9f minor #39707 [Validator] mistake (gbere)
This PR was merged into the 4.4 branch.

Discussion
----------

[Validator] mistake

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

Commits
-------

caa59fae81 mistake
2021-01-04 18:13:08 +01:00
Nicolas Grekas
bb5d52c42d minor #39710 fix code style (xabbuh)
This PR was merged into the 4.4 branch.

Discussion
----------

fix code style

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

Commits
-------

89fedfa9e9 fix code style
2021-01-04 18:09:16 +01:00
Nicolas Grekas
09e51d6b42 Cleanup CI scripts 2021-01-04 17:51:14 +01:00
Christian Flothmann
35f836a66d use the clock mock to make test more resilient 2021-01-04 17:00:46 +01:00
Christian Flothmann
89fedfa9e9 fix code style 2021-01-04 16:15:05 +01:00
Christian Flothmann
689e3039fc fix code style 2021-01-04 15:27:21 +01:00
Christian Flothmann
126105146f apply the sort callback on the whole search result 2021-01-04 15:07:41 +01:00
Christian Flothmann
28b6051f53 take query and request parameters into account when matching routes 2021-01-04 14:59:34 +01:00
Gerard Berengué
caa59fae81
mistake 2021-01-04 14:29:17 +01:00
Christian Flothmann
4c5cff6558 throw type error when incompatible types are passed 2021-01-04 13:51:17 +01:00
Christian Flothmann
5b9e187631 Merge branch '5.1' into 5.2
* 5.1:
  harden test to not depend on the actual time
  [ProxyManager] fix tests
  actually compare the order of entries when any sorting is applied
  Dump abstract arguments
2021-01-04 13:41:39 +01:00
Christian Flothmann
74d8fb897a Merge branch '4.4' into 5.1
* 4.4:
  harden test to not depend on the actual time
  [ProxyManager] fix tests
  actually compare the order of entries when any sorting is applied
2021-01-04 13:34:36 +01:00
Fabien Potencier
0304f754b3 minor #39705 [ProxyManager] fix tests (nicolas-grekas)
This PR was merged into the 4.4 branch.

Discussion
----------

[ProxyManager] fix tests

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

Commits
-------

5ec2a252ee [ProxyManager] fix tests
2021-01-04 13:05:33 +01:00
Fabien Potencier
135a9b20af minor #39704 [Finder] actually compare the order of entries when any sorting is applied (xabbuh)
This PR was merged into the 4.4 branch.

Discussion
----------

[Finder] actually compare the order of entries when any sorting is applied

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

Without this change the tests where still passing if the sorting didn't work as expected. There are three more tests that sort by file times. I do not really know how to make them more stable though.

Commits
-------

f1ed653eee actually compare the order of entries when any sorting is applied
2021-01-04 13:04:05 +01:00
Christian Flothmann
28a956baa9 harden test to not depend on the actual time 2021-01-04 12:47:44 +01:00
Nicolas Grekas
5ec2a252ee [ProxyManager] fix tests 2021-01-04 12:30:20 +01:00
Christian Flothmann
f1ed653eee actually compare the order of entries when any sorting is applied 2021-01-04 12:28:59 +01:00
Fabien Potencier
b76d5608cf bug #39692 [FrameworkBundle] Dump abstract arguments (jderusse)
This PR was merged into the 5.1 branch.

Discussion
----------

[FrameworkBundle] Dump abstract arguments

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

This PR fixes n exception thrown when dumping abstract arguments (ie. `./bin/console  debug:containter session.abstract_handler --show-arguments`)

Commits
-------

df769ec84c Dump abstract arguments
2021-01-04 08:57:52 +01:00
Alexander M. Turek
a378537a8e Merge branch '5.1' into 5.2
* 5.1:
  remove unneeded sprintf() call
  Fix CS
  Fix config merging in lock
  keep trailing newlines when dumping multi-line strings
  disable error bubbling by default when inherit_data is configured
2021-01-03 23:09:37 +01:00
Alexander M. Turek
3fca96d9de Merge branch '4.4' into 5.1
* 4.4:
  remove unneeded sprintf() call
  Fix CS
  Fix config merging in lock
  keep trailing newlines when dumping multi-line strings
  disable error bubbling by default when inherit_data is configured
2021-01-03 23:00:02 +01:00
Alexander M. Turek
04671ee726 minor #39694 [PropertyAccess] remove unneeded sprintf() call (xabbuh)
This PR was merged into the 4.4 branch.

Discussion
----------

[PropertyAccess] remove unneeded sprintf() call

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

Commits
-------

a8252a43b8 remove unneeded sprintf() call
2021-01-03 13:23:32 +01:00
Christian Flothmann
a8252a43b8 remove unneeded sprintf() call 2021-01-03 12:55:43 +01:00
Jérémy Derussé
df769ec84c
Dump abstract arguments 2021-01-03 12:32:13 +01:00
Christian Flothmann
1d0c91629a fix tests to run assertions on returned Crawler instances 2021-01-03 11:13:13 +01:00
Fabien Potencier
a902dd8a1b bug #39683 [Yaml] keep trailing newlines when dumping multi-line strings (xabbuh)
This PR was merged into the 4.4 branch.

Discussion
----------

[Yaml] keep trailing newlines when dumping multi-line strings

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix https://github.com/symfony/symfony/pull/39668#issuecomment-753484545
| License       | MIT
| Doc PR        |

Commits
-------

4c513c24c7 keep trailing newlines when dumping multi-line strings
2021-01-03 09:28:04 +01:00
Fabien Potencier
da07550827 bug #39670 [Form] disable error bubbling by default when inherit_data is configured (xabbuh)
This PR was merged into the 4.4 branch.

Discussion
----------

[Form] disable error bubbling by default when inherit_data is configured

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

Commits
-------

8679c2ac05 disable error bubbling by default when inherit_data is configured
2021-01-03 09:24:31 +01:00
Fabien Potencier
4bced61887 Fix CS 2021-01-03 09:19:04 +01:00
Fabien Potencier
a0d66d2ecd bug #39686 [Lock] Fix config merging in lock (jderusse)
This PR was merged into the 4.4 branch.

Discussion
----------

[Lock] Fix config merging in lock

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

Commits
-------

6bb2d67cf1 Fix config merging in lock
2021-01-03 09:18:23 +01:00
Jérémy Derussé
6bb2d67cf1
Fix config merging in lock 2021-01-02 23:18:12 +01:00
Christian Flothmann
4c513c24c7 keep trailing newlines when dumping multi-line strings 2021-01-02 17:02:59 +01:00
Alexander M. Turek
0633f96941 Merge branch '5.1' into 5.2
* 5.1:
  fix postgres transport when the retry table is the same
  do not dump extra trailing newlines for multiline blocks
2021-01-01 23:54:04 +01:00
Alexander M. Turek
5c2ef6b5cf Merge branch '4.4' into 5.1
* 4.4:
  do not dump extra trailing newlines for multiline blocks
2021-01-01 21:51:20 +01:00
Fabien Potencier
04c67e61e2 bug #39668 [Yaml] do not dump extra trailing newlines for multiline blocks (xabbuh)
This PR was merged into the 4.4 branch.

Discussion
----------

[Yaml] do not dump extra trailing newlines for multiline blocks

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

Commits
-------

5fa9592d5e do not dump extra trailing newlines for multiline blocks
2021-01-01 10:44:44 +01:00
Fabien Potencier
e6ba3a5e4b bug #39674 [Messenger] fix postgres transport when the retry table is the same (lyrixx)
This PR was merged into the 5.1 branch.

Discussion
----------

[Messenger] fix postgres transport when the retry table is the same

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

---

I noticed messenger do not consume all messages when there is a retry
and when I'm using only one table for everything.

To reproduce, use the following configuration + use PG + throw an
exception in the handler

```yaml
framework:
    messenger:
        failure_transport: failed

        transports:
            async: '%env(MESSENGER_TRANSPORT_DSN)%'
            failed: 'doctrine://default?queue_name=failed'

        routing:
            'App\Message\Foobar': async
```

The real issue is PG does not notify messenger when we `UPDATE` the message.

---

ping @dunglas

Commits
-------

2b4d47163f fix postgres transport when the retry table is the same
2021-01-01 10:40:53 +01:00
Fabien Potencier
a459b44829 Bump license year 2021-01-01 10:27:05 +01:00
Fabien Potencier
2a1a4e7067 Merge branch '5.1' into 5.2
* 5.1:
  Bump license year
  Bump license year
  [Form] fix passing null $pattern to IntlDateFormatter
  Add reference link
  Update README.md
2021-01-01 10:26:45 +01:00
Fabien Potencier
46ea62297b Bump license year 2021-01-01 10:26:30 +01:00
Fabien Potencier
f4ca745086 Merge branch '4.4' into 5.1
* 4.4:
  Bump license year
  [Form] fix passing null $pattern to IntlDateFormatter
  Update README.md
2021-01-01 10:25:51 +01:00
Fabien Potencier
2c4337ae5b Bump license year 2021-01-01 10:24:35 +01:00
Grégoire Pineau
2b4d47163f fix postgres transport when the retry table is the same 2020-12-31 17:54:38 +01:00
Thomas Calvet
1c652a7649 [FrameworkBundle] Fix UidNormalizer priority 2020-12-31 17:30:56 +01:00
Christian Flothmann
8679c2ac05 disable error bubbling by default when inherit_data is configured 2020-12-31 15:25:34 +01:00
Christian Flothmann
5fa9592d5e do not dump extra trailing newlines for multiline blocks 2020-12-31 11:51:02 +01:00
Nicolas Grekas
52360c1e4e [Form] fix passing null $pattern to IntlDateFormatter 2020-12-29 14:49:19 +01:00
Christian Flothmann
13a4610824 propagate groups to nested constraints 2020-12-29 11:10:22 +01:00
Nicolas Grekas
b604fd7dd8 minor #39648 [Notifier] Add missing LICENSE file (OskarStark)
This PR was merged into the 5.2 branch.

Discussion
----------

[Notifier] Add missing LICENSE file

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

Commits
-------

fbd1fe0fd6 [Notifier] Add missing LICENSE file
2020-12-29 09:43:11 +01:00
Oskar Stark
fbd1fe0fd6 [Notifier] Add missing LICENSE file 2020-12-29 09:21:34 +01:00
Fabien Potencier
b42dd0bb4e Add reference link 2020-12-29 08:39:30 +01:00
Fabien Potencier
37aba3db51 bug #39637 [Security] Fix event propagation for AuthenticationTokenCreatedEvent when globally registered (scheb)
This PR was merged into the 5.2 branch.

Discussion
----------

[Security] Fix event propagation for AuthenticationTokenCreatedEvent when globally registered

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

As promised, here's the follow-up to #39621, fixing `AuthenticationTokenCreatedEvent` to be propated from the global event dispatcher to firewall-specific event dispatchers.

The event was added in Symfony 5.2, therefore the separate PR targeting the 5.2 branch.

Commits
-------

68aaf4f916 Add AuthenticationTokenCreatedEvent to be propagated
2020-12-29 08:25:13 +01:00
Alexander M. Turek
add3cdd623 [Validator] Update Isin message to match the translation files. 2020-12-29 01:25:50 +01:00
Nicolas Grekas
c0d12ed98f Merge branch '5.1' into 5.2
* 5.1:
  [ProxyManagerBridge] Fix tests
  [Messenger] Fix stopwach usage if it has been reset
2020-12-28 22:49:17 +01:00
Nicolas Grekas
1c91f55482 Merge branch '4.4' into 5.1
* 4.4:
  [ProxyManagerBridge] Fix tests
  [Messenger] Fix stopwach usage if it has been reset
2020-12-28 22:49:04 +01:00
Nicolas Grekas
cd0db690f8 [ProxyManagerBridge] Fix tests 2020-12-28 22:45:17 +01:00
Christian Scheb
68aaf4f916 Add AuthenticationTokenCreatedEvent to be propagated 2020-12-28 12:33:27 +01:00
Grégoire Pineau
bf4b0cc022 [Messenger] Fix stopwach usage if it has been reset 2020-12-28 10:51:48 +01:00
Nicolas Grekas
68c6027a21 Merge branch '5.1' into 5.2
* 5.1:
  Handle ValueErrors triggered by ext-uuid on PHP 8
  Add test case to ensure all security events are propagated
2020-12-28 10:48:24 +01:00
Nyholm
2a807f9e29
bug #39636 [Uid] Handle ValueErrors triggered by ext-uuid on PHP 8 (derrabus)
This PR was merged into the 5.1 branch.

Discussion
----------

[Uid] Handle ValueErrors triggered by ext-uuid on PHP 8

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

Follows symfony/polyfill#318.

On PHP 8, the UUID extension triggers `ValueErrors` if we pass an invalid UUID to one of the `uuid_*` functions. This PR handles those errors so that the component behaves the same on PHP 7 and 8.

Commits
-------

5305170e54 Handle ValueErrors triggered by ext-uuid on PHP 8
2020-12-28 09:18:54 +01:00
Wouter de Jong
4fc2d90884 minor #39635 [FrameworkBundle][RateLimiter] Update typos in config (Nyholm)
This PR was squashed before being merged into the 5.2 branch.

Discussion
----------

[FrameworkBundle][RateLimiter] Update typos in config

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

This is just a super minor

Commits
-------

1b4ab3e3a2 [FrameworkBundle][RateLimiter] Update typos in config
2020-12-28 00:13:50 +01:00
Nyholm
1b4ab3e3a2 [FrameworkBundle][RateLimiter] Update typos in config 2020-12-28 00:13:43 +01:00
Wouter de Jong
3c50aac95b minor #39630 [Security] Add test to ensure all security events are propagated (scheb)
This PR was merged into the 5.1 branch.

Discussion
----------

[Security] Add test to ensure all security events are propagated

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

Follow-up to #39621. As requested by @wouterj I'm adding a dedicated test case to ensure the security events are propagated from global to firewall-level event dispatcher.

I'll file another PR to add `AuthenticationTokenCreatedEvent` as soon as this has been merged and copied to the 5.2 branch, that I need to target for the `AuthenticationTokenCreatedEvent` change.

Happy holidays!

Commits
-------

e78adf7604 Add test case to ensure all security events are propagated
2020-12-28 00:10:29 +01:00
Alexander M. Turek
5305170e54 Handle ValueErrors triggered by ext-uuid on PHP 8 2020-12-27 21:49:37 +01:00
Alexander M. Turek
6bf07f2bc9 Merge branch '5.1' into 5.2
* 5.1:
  CS: Apply ternary_to_null_coalescing fixer
2020-12-27 14:15:00 +01:00
Alexander M. Turek
eb4b003bc1 Merge branch '4.4' into 5.1
* 4.4:
  CS: Apply ternary_to_null_coalescing fixer
2020-12-27 14:04:50 +01:00
Christian Scheb
e78adf7604 Add test case to ensure all security events are propagated 2020-12-27 11:30:54 +01:00
Alexander M. Turek
07c4773d98 CS: Apply ternary_to_null_coalescing fixer 2020-12-27 00:49:32 +01:00
Alexander M. Turek
49a2fc2cf8 Merge branch '5.1' into 5.2
* 5.1:
  [VarDumper] Fix display of nullable union return types.
  [VarDumper] fixed displaying "mixed" as "?mixed"
  Handle failure when sending DATA
2020-12-26 21:29:44 +01:00
Alexander M. Turek
29b41edf06 Merge branch '4.4' into 5.1
* 4.4:
  [VarDumper] Fix display of nullable union return types.
  [VarDumper] fixed displaying "mixed" as "?mixed"
  Handle failure when sending DATA
2020-12-26 20:36:22 +01:00
Alexander M. Turek
efeb2dcf70 [VarDumper] Fix display of nullable union return types. 2020-12-26 15:01:31 +01:00
Nicolas Grekas
87dc694094 [VarDumper] fixed displaying "mixed" as "?mixed" 2020-12-26 12:22:20 +01:00
Jérémy Derussé
457c8b119d
bug #39597 [Mailer] Handle failure when sending DATA (jderusse)
This PR was merged into the 4.4 branch.

Discussion
----------

[Mailer] Handle failure when sending DATA

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

When an exception is thrown while sending an email via SMTP (ie. A attachment is not readable) the SMTP connection is left opened with a partial message sent.

This PR closes the connection (we can't abort after sending the `DATA` command) in such situation.

/cc @fabpot

Commits
-------

849211a780 Handle failure when sending DATA
2020-12-24 10:07:56 +01:00
Jérémy Derussé
849211a780
Handle failure when sending DATA 2020-12-23 18:20:02 +01:00
Nicolas Grekas
b53600d89b Merge branch '5.1' into 5.2
* 5.1:
  [Security] Fix event propagation for globally registered security events
  Add missing `@return` annotations to fix deprecations on PHP 8
  [ProxyManagerBridge] fix PHP notice, switch to "friendsofphp/proxy-manager-lts"
2020-12-23 16:38:30 +01:00
Nicolas Grekas
fb8935eb19 bug #39621 [Security] Fix event propagation for globally registered security events (scheb)
This PR was squashed before being merged into the 5.1 branch.

Discussion
----------

[Security] Fix event propagation for globally registered security events

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

When new authenticator security is enabled, the `AuthenticatorManager` is using its own firewall-specific event dispatcher. To allow security events being listened to on the global level, `RegisterGlobalSecurityEventListenersPass` is there to automatically add globally registered event listeners to the firewall-specific event dispatchers.

`RegisterGlobalSecurityEventListenersPass` contains a list of events that are propagated, but unfortunately this list is incomplete as there are other events in `AuthenticatorManager` that would need too be propagated. So I added the missing (older) security events. These older events may also be registered by their name, rather than the FQN of the class, so I've also added those.

As this is targeting 5.1, I'll file another PR for the `AuthenticationTokenCreatedEvent` that was introduced in 5.2, as soon as this change was merged into 5.x.

On a note, I feel this "whitelist" approach to propagate security events to the global dispatcher isn't that great, because it's prone to error. Additional security events may be added in the future and adding these to `RegisterGlobalSecurityEventListenersPass` can easily be missed. When I added `AuthenticationTokenCreatedEvent` in PR #37359 I wasn't aware of this propagation mechanic existed and also no one reviewing the PR noticed it.

Additional changes:
- Typo fix :)
- The `array_uintersect` in `RegisterGlobalSecurityEventListenersPassTest` wasn't implemented correctly *

\* That function's behavior is really odd and easy to be used in the wrong way. The callback function isn't intended to return true/false for matching items, but return -1/0/1 like sorting functions. The tests seemingly only worked by chance as returning true/false is doing pretty much the opposite of what the callback function is supposed to do.

Commits
-------

1675864032 [Security] Fix event propagation for globally registered security events
2020-12-23 16:38:06 +01:00
Christian Scheb
1675864032 [Security] Fix event propagation for globally registered security events 2020-12-23 16:37:46 +01:00
Nicolas Grekas
c1cb43e2c2 Merge branch '4.4' into 5.1
* 4.4:
  Add missing `@return` annotations to fix deprecations on PHP 8
  [ProxyManagerBridge] fix PHP notice, switch to "friendsofphp/proxy-manager-lts"
2020-12-23 16:26:14 +01:00
Nicolas Grekas
8b3c1a1edf minor #39614 Add missing @return annotations to fix deprecations on PHP 8 (nicolas-grekas)
This PR was merged into the 4.4 branch.

Discussion
----------

Add missing `@return` annotations to fix deprecations on PHP 8

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

Commits
-------

3ffe5573e9 Add missing `@return` annotations to fix deprecations on PHP 8
2020-12-23 16:21:09 +01:00
Nicolas Grekas
3ffe5573e9 Add missing @return annotations to fix deprecations on PHP 8 2020-12-23 16:11:26 +01:00
Nicolas Grekas
80c5aeb6a2 bug #39603 [TwigBridge] allow null values in form helpers (xabbuh)
This PR was merged into the 5.2 branch.

Discussion
----------

[TwigBridge] allow null values in form helpers

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

Commits
-------

f908047c6b allow null values in form helpers
2020-12-23 15:54:41 +01:00
Alexander M. Turek
9e56c00f9c bug #39584 [Security] Add RememberMe Badge to LoginLinkAuthenticator (jderusse)
This PR was merged into the 5.2 branch.

Discussion
----------

[Security] Add RememberMe Badge to LoginLinkAuthenticator

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

I'm replacing a custom home-made magic link authenticator by the Symfony one, and I missed this behavior. I had to use a EventListener to add the badge to the passeport.

I'm not sure, if the badge were missing on purpose /cc @weaverryan @wouterj

Commits
-------

d38fc4d678 Add RememberMe Badge to LoginLinkAuthenticator
2020-12-22 20:03:33 +01:00
Nicolas Grekas
389f5304c7 [ProxyManagerBridge] fix PHP notice, switch to "friendsofphp/proxy-manager-lts" 2020-12-22 17:08:05 +01:00
Alexander M. Turek
2a3708ef74 Fix tests 2020-12-22 15:53:22 +01:00
Alexander M. Turek
3c753e6eff Merge branch '5.1' into 5.2
* 5.1:
  [Notifier] [DX] Abstract test cases
  [Intl] Update the ICU data to 68.2
2020-12-22 15:40:43 +01:00
Alexander M. Turek
1ee1659601 minor #39495 [Notifier] [DX] Abstract test cases (OskarStark)
This PR was squashed before being merged into the 5.1 branch.

Discussion
----------

[Notifier] [DX] Abstract test cases

| Q             | A
| ------------- | ---
| Branch?       | 5.1
| New feature?  | no
| Deprecations? | no
| Tickets       | ---
| License       | MIT
| Doc PR        | ---

This PR

* [x] adds a new _abstract_ `TransportTestCase`
* [x] adds a new _abstract_ `TransportFactoryTestCase` (code is mainly taken from the `Mailer/TransportFactoryTestCase`)

We have a lot of code duplication in the notifier bridges

### Todos
* [x] check if we want this
* [x]  I would want to use Dsn strings (like already used in the notifier bridge tests) instead of objects for the providers, what do you think? For me it is more readably
* [x] update all bridges
* [x] Bump notifier to `~5.1.10`

### Questions
* [x] is it Ok to consider this a bugfix and merge into `5.1`?
* [x] shall I prefix the abstract test cases with `Abstract` ? As we did the same for Mailer, I would say no

@symfony/mergers have to change ^5.2 into ^5.2.1

Commits
-------

79379b71f4 [Notifier] [DX] Abstract test cases
2020-12-22 15:13:56 +01:00
Oskar Stark
79379b71f4 [Notifier] [DX] Abstract test cases 2020-12-22 15:13:46 +01:00
Alexander M. Turek
c900018758 Merge branch '4.4' into 5.1
* 4.4:
  [Intl] Update the ICU data to 68.2
2020-12-22 13:16:28 +01:00
Christian Flothmann
f908047c6b allow null values in form helpers 2020-12-22 09:11:35 +01:00
Oskar Stark
d9eb1a1f6e [Notifier] [Discord] Use sprintf for exception message 2020-12-22 08:30:35 +01:00
Alexander M. Turek
18927fe54a minor #39573 [Intl] Update the ICU data to 68.2 (jakzal)
This PR was merged into the 4.4 branch.

Discussion
----------

[Intl] Update the ICU data to 68.2

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

Commits
-------

4573965f74 [Intl] Update the ICU data to 68.2
2020-12-21 17:14:24 +01:00
Alexander M. Turek
d499cac462 minor #39576 [Notifier] add "symfony/polyfill-mbstring" as dep of the Discord bridge (nicolas-grekas)
This PR was merged into the 5.2 branch.

Discussion
----------

[Notifier] add "symfony/polyfill-mbstring" as dep of the Discord bridge

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

Commits
-------

e61f0c50fa [Notifier] add "symfony/polyfill-mbstring" as dep of the Discord bridge
2020-12-21 16:41:57 +01:00
Alexander M. Turek
7bc051f260 Merge branch '5.1' into 5.2
* 5.1:
  Bump Symfony version to 5.1.11
  Update VERSION for 5.1.10
  Update CHANGELOG for 5.1.10
  Bump Symfony version to 4.4.19
  Update VERSION for 4.4.18
  Update CONTRIBUTORS for 4.4.18
  Update CHANGELOG for 4.4.18
  [Serializer] Fix DenormalizableInterface::denormalize() return type declaration in docblock
2020-12-21 16:33:14 +01:00
Alexander M. Turek
74b132fca2 Merge branch '4.4' into 5.1
* 4.4:
  Bump Symfony version to 4.4.19
  Update VERSION for 4.4.18
  Update CONTRIBUTORS for 4.4.18
  Update CHANGELOG for 4.4.18
  [Serializer] Fix DenormalizableInterface::denormalize() return type declaration in docblock
2020-12-21 16:29:43 +01:00
Jérémy Derussé
d38fc4d678
Add RememberMe Badge to LoginLinkAuthenticator 2020-12-21 09:54:09 +01:00
Olivier Dolbeau
f8a95b3965 Supports empty path for slack DSN 2020-12-21 09:54:05 +01:00
Robin Chalas
c4ddafb655 minor #39565 [Notifier] GoogleChat/FreeMobile: Declare incompatibility with 5.3 (derrabus)
This PR was merged into the 5.2 branch.

Discussion
----------

[Notifier] GoogleChat/FreeMobile: Declare incompatibility with 5.3

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

I missed two bridges. 😓  @nicolas-grekas

Commits
-------

b9eca9fcc9 [Notifier] GoogleChat/FreeMobile: Declare incompatibility with 5.3.
2020-12-20 15:19:17 +01:00
Alexander M. Turek
8f7a8d345a minor #39561 [Serializer] Fix DenormalizableInterface::denormalize() return type declaration in docblock (jeroennoten)
This PR was merged into the 4.4 branch.

Discussion
----------

[Serializer] Fix DenormalizableInterface::denormalize() return type declaration in docblock

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

DenormalizableInterface::denormalize() should not return anything, so the `@return` declaration should be removed. If you look at the usage in `CustomNormalizer::denormalize()`, it becomes clear that this method shouldn't return anything:
```php
    public function denormalize($data, $type, $format = null, array $context = [])
    {
        $object = $this->extractObjectToPopulate($type, $context) ?: new $type();
        $object->denormalize($this->serializer, $data, $format, $context);

        return $object;
    }
```

Commits
-------

00c90aed51 [Serializer] Fix DenormalizableInterface::denormalize() return type declaration in docblock
2020-12-20 14:32:21 +01:00
Nicolas Grekas
e61f0c50fa [Notifier] add "symfony/polyfill-mbstring" as dep of the Discord bridge 2020-12-19 15:24:47 +01:00
Jakub Zalas
4573965f74
[Intl] Update the ICU data to 68.2 2020-12-19 12:57:32 +01:00
Robin Chalas
fd27c4dd97 [SecurityBundle] Fix transient test 2020-12-19 11:10:19 +01:00
Fabien Potencier
ba849c0d21 Bump Symfony version to 5.2.2 2020-12-18 15:09:16 +01:00
Fabien Potencier
8c76f4b2fc Update VERSION for 5.2.1 2020-12-18 14:49:39 +01:00
Fabien Potencier
a969b99417 Bump Symfony version to 5.1.11 2020-12-18 14:48:52 +01:00
Alexander M. Turek
b9eca9fcc9 [Notifier] GoogleChat/FreeMobile: Declare incompatibility with 5.3. 2020-12-18 14:47:30 +01:00
Fabien Potencier
3213a921e5 Update VERSION for 5.1.10 2020-12-18 14:43:29 +01:00
Fabien Potencier
c1b9323f30 Bump Symfony version to 4.4.19 2020-12-18 14:39:05 +01:00
Fabien Potencier
92334dd0c5 Update VERSION for 4.4.18 2020-12-18 14:32:33 +01:00
Jeroen Noten
00c90aed51
[Serializer] Fix DenormalizableInterface::denormalize() return type declaration in docblock 2020-12-18 14:21:55 +01:00
Alexander M. Turek
b0c2c4e46e [Notifier] Prepare bridges for the upcoming return type change. 2020-12-18 13:41:51 +01:00
Jérémy Derussé
79718fb70f
Fix NFS detection on macOs 2020-12-18 12:40:59 +01:00
Nicolas Grekas
5c03d2d085 Fix merge 2020-12-18 11:41:23 +01:00
Nicolas Grekas
26ce5b4c20 Merge branch '5.1' into 5.2
* 5.1:
  [Notifier] [Mattermost] Host is required
2020-12-18 11:35:32 +01:00
Nicolas Grekas
8797138e8d bug #39545 [Notifier] [Mattermost] Host is required (OskarStark)
This PR was squashed before being merged into the 5.1 branch.

Discussion
----------

[Notifier] [Mattermost] Host is required

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

This bridge is the only one right now which cannot use `default` as host in the DSN, otherwise it would fall back to:
090b4256f0/src/Symfony/Component/Notifier/Transport/AbstractTransport.php (L30)

it could also not use:
090b4256f0/src/Symfony/Component/Notifier/Transport/AbstractTransport.php (L83-L86)

Based on the [documentation](https://api.mattermost.com/#tag/authentication) you must use your specific url like:
`your-mattermost-url.com/api/v4/...`

Using `localhost` would have weird side-effects.

Can you confirm this @thePanz , as you provided the bridge?

friendly ping @seb37800, you fixed some bugs in this transport

### Todos after merge
* [ ] adjust recipes with new DSN
* [ ] update the docs

Commits
-------

cd5b48003f [Notifier] [Mattermost] Host is required
2020-12-18 11:34:54 +01:00
Oskar Stark
cd5b48003f [Notifier] [Mattermost] Host is required 2020-12-18 11:34:45 +01:00
Nicolas Grekas
7b4af4ba13 bug #39548 [Notifier] [Infobip][Zulip] Host is required (OskarStark)
This PR was squashed before being merged into the 5.2 branch.

Discussion
----------

[Notifier] [Infobip][Zulip] Host is required

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

### Todos after merge
* [ ] adjust recipes with new DSN
* [ ] update the docs

Commits
-------

cfd932e036 [Notifier] [Infobip][Zulip] Host is required
2020-12-18 11:21:23 +01:00
Oskar Stark
cfd932e036 [Notifier] [Infobip][Zulip] Host is required 2020-12-18 11:21:14 +01:00
Nicolas Grekas
0625c2ada4 bug #39550 [HttpFoundation] keep turning dots to underscores when using Request::create() (nicolas-grekas)
This PR was merged into the 5.2 branch.

Discussion
----------

[HttpFoundation] keep turning dots to underscores when using Request::create()

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

Commits
-------

cda81ccccd [HttpFoundation] keep turning dots to underscores when using Request::create()
2020-12-18 11:11:15 +01:00
Nicolas Grekas
fc160a14da [Notifier] Fix tests 2020-12-18 11:08:59 +01:00
Nicolas Grekas
cda81ccccd [HttpFoundation] keep turning dots to underscores when using Request::create() 2020-12-18 11:00:10 +01:00
Fabien Potencier
9e87661911 Merge branch '5.1' into 5.2
* 5.1:
  Remove :void in test function signatures
2020-12-18 09:03:05 +01:00
Fabien Potencier
090b4256f0 Merge branch '4.4' into 5.1
* 4.4:
  Remove :void in test function signatures
2020-12-18 09:02:46 +01:00
Fabien Potencier
c60f0b8e02 Fix CS 2020-12-18 08:54:33 +01:00
Fabien Potencier
185f04dfd4 Fi CS 2020-12-18 08:52:49 +01:00
Fabien Potencier
a566eeeee0 minor #39428 [Notifier] Rework/streamline bridges (5.2) (OskarStark)
This PR was squashed before being merged into the 5.2 branch.

Discussion
----------

[Notifier] Rework/streamline bridges (5.2)

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

This PR

* add missing tests
* pull up scheme check (check scheme first and then for required options)
* streamlines README.md files

While working on adding tests for `symfony/esendex-notifier` I noticed that the `EsendexTransport` has the following signature:
613ac0c0e9/src/Symfony/Component/Notifier/Bridge/Esendex/EsendexTransport.php (L36)

and is resolved by the `EsendexTransportFactory` like:
613ac0c0e9/src/Symfony/Component/Notifier/Bridge/Esendex/EsendexTransportFactory.php (L30)

but the `README` exposes the DSN like:
```
esendex://EMAIL:PASSWORD@default?accountreference=ACCOUNT_REFERENCE&from=FROM
```
as this Bridge is experimental in `5.2`I propose to change the transport signature like, because to me it is more email/password like described in the readme than a "token":
```diff
- public function __construct(string $token, string $accountReference, string $from, HttpClientInterface $client = null,
EventDispatcherInterface $dispatcher = null)
+ public function __construct(string $email, string $password, string $accountReference, string $from, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
```

What do you think?

cc @odolbeau as you provided the Esendex bridge.

Commits
-------

a5d78787e6 [Notifier] Rework/streamline bridges (5.2)
2020-12-18 08:52:08 +01:00
Oskar Stark
a5d78787e6 [Notifier] Rework/streamline bridges (5.2) 2020-12-18 08:52:03 +01:00
Fabien Potencier
47fcf4ad5a Remove :void in test function signatures 2020-12-18 08:41:31 +01:00
Fabien Potencier
7d5ddc756c Merge branch '5.1' into 5.2
* 5.1:
  Remove void return type from test methods
  Added basque translations
  Updated Luxembourgish translations
  [Mailer] Fix parsing Dsn with empty user/password
  Normalize exceptions messages containing methods references
  [Ldap] Incorrect determination of RelativeDistinguishedName for the "move" operation
2020-12-18 08:32:35 +01:00
Fabien Potencier
0dc2d55537 Merge branch '4.4' into 5.1
* 4.4:
  Remove void return type from test methods
  Added basque translations
  Updated Luxembourgish translations
  [Mailer] Fix parsing Dsn with empty user/password
  Normalize exceptions messages containing methods references
  [Ldap] Incorrect determination of RelativeDistinguishedName for the "move" operation
2020-12-18 08:32:24 +01:00
Fabien Potencier
d0da49d201 Merge branch '5.1' into 5.2
* 5.1:
  [Notifier] Fix parsing Dsn with empty user/password
  Remove void return type from test methods
  [Notifier] Use assertSame()
2020-12-18 08:27:35 +01:00
Fabien Potencier
24334cb837 bug #39538 [Notifier] Fix parsing Dsn with empty user/password (OskarStark)
This PR was squashed before being merged into the 5.1 branch.

Discussion
----------

[Notifier] Fix parsing Dsn with empty user/password

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

Same like https://github.com/symfony/symfony/pull/39531, but for Notifier component.

I backported the DsnTest from `5.2` to `5.1`

Commits
-------

a80409af25 [Notifier] Fix parsing Dsn with empty user/password
2020-12-18 08:25:35 +01:00
Oskar Stark
a80409af25 [Notifier] Fix parsing Dsn with empty user/password 2020-12-18 08:25:29 +01:00
Oskar Stark
78da70615b Remove void return type from test methods 2020-12-18 07:28:27 +01:00
Oskar Stark
f126cf1304 Remove void return type from test methods 2020-12-18 07:23:32 +01:00
Fabien Potencier
5eeb95726d minor #39534 Normalize exceptions messages containing methods references (ogizanagi)
This PR was merged into the 4.4 branch.

Discussion
----------

Normalize exceptions messages containing methods references

| 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 https://github.com/symfony/symfony/pull/39399#discussion_r544972437 <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License       | MIT
| Doc PR        | N/A

Normalizes across the codebase any exception message mentioning methods to contain a trailing `()`

(Seems OK on 5.1 and 5.2 branch after this on is merged up)

Commits
-------

e2da2acd6d Normalize exceptions messages containing methods references
2020-12-17 17:57:38 +01:00
Iker Ibarguren Berasaluze
37a8e79650 Added basque translations 2020-12-17 17:47:44 +01:00
Fabien Potencier
7b3461ce79 minor #39391 Updated Luxembourgish translations (mweimerskirch)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

Updated Luxembourgish translations

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

Commits
-------

52b4628709 Updated Luxembourgish translations
2020-12-17 17:44:13 +01:00
Michel Weimerskirch
52b4628709 Updated Luxembourgish translations 2020-12-17 17:44:05 +01:00
Fabien Potencier
72fb034c77 bug #39531 [Mailer] Fix parsing Dsn with empty user/password (OskarStark)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[Mailer] Fix parsing Dsn with empty user/password

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

While working on a PR for Notifier that user and password would be parsed as an empty string, which is not wrong, but not expected IMO. Thi

`scheme://@symfony.com` and `scheme://:@symfony.com` should be a valid scheme with user and pass `null`

Another fix would be to check for `://@` and `://:@` and throw an `InvalidArgumentException` WDYT?

The final solution will then be applied to the Notifier DSN in `5.1`

Commits
-------

041cb46e52 [Mailer] Fix parsing Dsn with empty user/password
2020-12-17 17:39:20 +01:00
Oskar Stark
041cb46e52 [Mailer] Fix parsing Dsn with empty user/password 2020-12-17 17:39:11 +01:00
Fabien Potencier
6ead4a273e bug #39492 [Notifier] [Discord] Use private const and mb_strlen() (OskarStark)
This PR was squashed before being merged into the 5.2 branch.

Discussion
----------

[Notifier] [Discord] Use private const and mb_strlen()

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

like proposed by @nicolas-grekas in https://github.com/symfony/symfony/pull/39444/files#r542288432

Commits
-------

165c87247d [Notifier] [Discord] Use private const and mb_strlen()
2020-12-17 17:31:33 +01:00
Oskar Stark
165c87247d [Notifier] [Discord] Use private const and mb_strlen() 2020-12-17 17:31:25 +01:00
Fabien Potencier
756bab4241 bug #39522 [Notifier] Set message id on SentMessage (OskarStark)
This PR was squashed before being merged into the 5.2 branch.

Discussion
----------

[Notifier] Set message id on SentMessage

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

@ismail1432 what do you think?

Commits
-------

9dd09e632d [Notifier] Set message id on SentMessage
2020-12-17 17:30:10 +01:00
Oskar Stark
9dd09e632d [Notifier] Set message id on SentMessage 2020-12-17 17:30:01 +01:00
Maxime Steinhausser
e2da2acd6d Normalize exceptions messages containing methods references 2020-12-17 14:33:54 +01:00
Artem Stepin
c7e99a2523
[Ldap] Incorrect determination of RelativeDistinguishedName for the "move" operation 2020-12-17 12:39:48 +01:00
Oskar Stark
e61363c1f2 [Notifier] Fix toString when optional parameter is not set 2020-12-17 11:46:37 +01:00
Nicolas Grekas
29d62dfa86 [Notifier] CS fix 2020-12-17 09:59:31 +01:00
Nicolas Grekas
bc6550ec67 minor #39526 [Notifier] Use assertSame() (OskarStark)
This PR was squashed before being merged into the 5.1 branch.

Discussion
----------

[Notifier] Use assertSame()

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

Commits
-------

4a1976b4ef [Notifier] Use assertSame()
2020-12-17 09:34:41 +01:00
Oskar Stark
4a1976b4ef [Notifier] Use assertSame() 2020-12-17 09:34:34 +01:00
Nicolas Grekas
42ad1ece92 [VarDumper] dont hide any nodes until JS is proven to work 2020-12-16 18:02:19 +01:00
Alexander M. Turek
904b05a0de Merge branch '5.1' into 5.2
* 5.1:
  [Notifier] Improve tests (5.1)
  [Notifier] Fix wrong package names
  [Notifier] [Free Mobile] Could not use custom host in DSN
2020-12-16 08:59:53 +01:00
Oskar Stark
5773a46677 [Notifier] Improve tests (5.1) 2020-12-16 08:45:20 +01:00
Alexander M. Turek
6112be33d2 bug #39498 [DoctrineBridge] Guess correct form types for DATE_IMMUTABLE and DATETIME_IMMUTABLE (guillaume-sainthillier)
This PR was squashed before being merged into the 5.2 branch.

Discussion
----------

[DoctrineBridge] Guess correct form types for DATE_IMMUTABLE and DATETIME_IMMUTABLE

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

Rebased PR #39469
Fixes #39468 related to Doctrine Form Type Guesser with DateImmutable type

Commits
-------

238d318e34 [DoctrineBridge] Guess correct form types for DATE_IMMUTABLE and DATETIME_IMMUTABLE
2020-12-16 08:43:23 +01:00
Guillaume Sainthillier
238d318e34 [DoctrineBridge] Guess correct form types for DATE_IMMUTABLE and DATETIME_IMMUTABLE 2020-12-16 08:43:10 +01:00
Fabien Potencier
77960f86a9 bug #39510 [Notifier]  [Free Mobile] Could not use custom host in DSN (OskarStark)
This PR was merged into the 5.1 branch.

Discussion
----------

[Notifier]  [Free Mobile] Could not use custom host in DSN

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

While working on #39509 I discovered, that you cannot set a custom host through the DSN string itself, only by calling `setHost()` method in the transport, which is only possible by **not** using the factory....

I changed it the way all other bridges work. I don't add a testcase for the port, because non of the others have that test.
I plan to implement it in #39495

As this is a bugfix I created an extra PR.

Cheers

EDIT:

Also the host is not allowed to contain `https://` otherwise calling `__toString()` will result in: `freemobile://https://......`

Commits
-------

63350cc19b [Notifier] [Free Mobile] Could not use custom host in DSN
2020-12-15 18:16:25 +01:00
Fabien Potencier
9613b41efa bug #39515 [Notifier] Fix wrong package name (OskarStark)
This PR was merged into the 5.2 branch.

Discussion
----------

[Notifier] Fix wrong package name

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

Same like https://github.com/symfony/symfony/pull/39514 but for `5.2`

Commits
-------

f345ecd966 [Notifier] Fix wrong package name
2020-12-15 14:02:02 +01:00
Fabien Potencier
1a98df5342 bug #39514 [Notifier] Fix wrong package names (OskarStark)
This PR was merged into the 5.1 branch.

Discussion
----------

[Notifier] Fix wrong package names

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

Commits
-------

344437286a [Notifier] Fix wrong package names
2020-12-15 14:01:00 +01:00
Oskar Stark
f345ecd966 [Notifier] Fix wrong package name 2020-12-15 13:50:14 +01:00
Oskar Stark
344437286a [Notifier] Fix wrong package names 2020-12-15 13:48:34 +01:00
Jérémy Derussé
bdf8744c2a
Add missing symfony/deprecation-contracts requirement 2020-12-15 12:53:10 +01:00
Jérémy Derussé
862b19982a
Merge branch '5.1' into 5.2
* 5.1:
  Add missing symfony/deprecation-contracts requirement
2020-12-15 12:52:46 +01:00
Alexander M. Turek
defb90b030 bug #39494 Add missing symfony/deprecation-contracts requirement (jderusse)
This PR was merged into the 5.1 branch.

Discussion
----------

Add missing symfony/deprecation-contracts requirement

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

We should require the `symfony/deprecation-contracts` package in components that call `trigger_deprecated`.

Commits
-------

5ae2364c7e Add missing symfony/deprecation-contracts requirement
2020-12-15 12:05:57 +01:00
Oskar Stark
63350cc19b [Notifier] [Free Mobile] Could not use custom host in DSN 2020-12-15 11:50:27 +01:00
Jérémy Derussé
98601908bb
Dont allow unserializing classes with a destructor - 5.2 2020-12-15 11:45:32 +01:00
Robin Chalas
302b80768a Merge branch '5.1' into 5.2
* 5.1:
  [Uid] Fix tests namespace
2020-12-15 10:12:47 +01:00
Robin Chalas
a7fd98bee8 bug #39360 [FrameworkBundler] Fix cache:clear with buildDir (jderusse)
This PR was merged into the 5.2 branch.

Discussion
----------

[FrameworkBundler] Fix cache:clear with buildDir

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

Since #36515 there are 2 caches dir `cacheDir` and `buildDir`. For BC reason both points to the same folders, but when app don't use the same folder, many thing are broken:
This PR fixes several issues introduces by the above PR:
- some files are persisted in the wrong folder (`App_KernelDevDebugContainerDeprecations.log`, `App_KernelDevDebugContainer.xml`)
- LoggerDataCollector looks into cache_dir, while `Compiler.log` is written in build_dir and `Deprecations.log` were written in cache_dir before this PR
- the logic that mirror cacheDir into buildDir at the end of CacheClearCommand does not make sens when `cache_dir` and `build_dir` are not identical.
- Files generated in cacheDir are trashed at the end of CacheWarming (initial issue)

Commits
-------

ea68966e91 Fix cache:clear with buildDir
2020-12-15 10:04:49 +01:00
Thomas Calvet
cd11ef67dc [Uid] Fix tests namespace 2020-12-15 00:03:24 +01:00
Alexander M. Turek
6caf916083 Merge branch '5.1' into 5.2
* 5.1:
  [Notifier] Rework/streamline bridges (5.1)
  [Mailer] [Amazon] Ensure "ext-simplexml" is loaded if SesApiTransport is used
  Stop using deprecated trait
  [PhpUnitBridge] Lint files with PHP 5.5
2020-12-14 23:27:17 +01:00
Alexander M. Turek
ef461b6f8e minor #39455 [Notifier] Rework/streamline bridges (5.1) (OskarStark)
This PR was squashed before being merged into the 5.1 branch.

Discussion
----------

[Notifier] Rework/streamline bridges (5.1)

| Q             | A
| ------------- | ---
| Branch?       | 5.1
| Bug fix?      | no
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | ---
| License       | MIT
| Doc PR        | ---

This PR

* add missing tests
* pull up scheme check (check scheme first and then for required options)

Commits
-------

856e191687 [Notifier] Rework/streamline bridges (5.1)
2020-12-14 23:20:55 +01:00
Oskar Stark
856e191687 [Notifier] Rework/streamline bridges (5.1) 2020-12-14 23:20:24 +01:00
Jérémy Derussé
2fb9fa3dac
Merge branch '4.4' into 5.1
* 4.4:
  [Mailer] [Amazon] Ensure "ext-simplexml" is loaded if SesApiTransport is used
  Stop using deprecated trait
  [PhpUnitBridge] Lint files with PHP 5.5
2020-12-14 21:31:08 +01:00
Jérémy Derussé
e96b0e7d4d
minor #39463 [Mailer] [Amazon] Ensure "ext-simplexml" is loaded if SesApiTransport is used (OskarStark)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[Mailer] [Amazon] Ensure "ext-simplexml" is loaded if SesApiTransport is used

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

For reference:
150d8506e4/src/Symfony/Component/Mailer/Bridge/Amazon/Transport/SesApiTransport.php (L66-L69)

Commits
-------

a40d1375f9 [Mailer] [Amazon] Ensure "ext-simplexml" is loaded if SesApiTransport is used
2020-12-14 21:27:32 +01:00
Oskar Stark
a40d1375f9
[Mailer] [Amazon] Ensure "ext-simplexml" is loaded if SesApiTransport is used 2020-12-14 21:27:17 +01:00
Jérémy Derussé
ea68966e91
Fix cache:clear with buildDir 2020-12-14 18:14:39 +01:00
Nicolas Grekas
698dadccb1 minor #39497 [PhpUnitBridge] [phpunit] Stop using deprecated trait (jderusse)
This PR was merged into the 4.4 branch.

Discussion
----------

[PhpUnitBridge] [phpunit] Stop using deprecated trait

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

the `SetUpTearDownTrait` trait has been removed in #39487 this PR remove usage of it in branch 4.4

Commits
-------

55ed00cd3c Stop using deprecated trait
2020-12-14 17:15:46 +01:00
Jérémy Derussé
55ed00cd3c
Stop using deprecated trait 2020-12-14 16:50:10 +01:00
Nicolas Grekas
510623f890 minor #39421 [PhpUnitBridge] Lint files with PHP 5.5 (derrabus)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[PhpUnitBridge] Lint files with PHP 5.5

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

I'd like to make sure that PhpUnitBridge remains compatible with PHP 5.5.

cc @nicolas-grekas @fancyweb

Commits
-------

0bc15ff759 [PhpUnitBridge] Lint files with PHP 5.5
2020-12-14 16:00:54 +01:00
Alexander M. Turek
0bc15ff759 [PhpUnitBridge] Lint files with PHP 5.5 2020-12-14 16:00:48 +01:00
Jérémy Derussé
5ae2364c7e
Add missing symfony/deprecation-contracts requirement 2020-12-14 15:33:09 +01:00
Nicolas Grekas
b81a03d7a1 Merge branch '5.1' into 5.2
* 5.1:
  Fix EncoderInterface::encode() return type
  [Lock] Prevent store exception break combined store
  Remove check for unsupported PHP version
  [Notifier] Rename test method names
2020-12-14 11:56:50 +01:00
Nicolas Grekas
bae2782cdb Merge branch '4.4' into 5.1
* 4.4:
  Fix EncoderInterface::encode() return type
  [Lock] Prevent store exception break combined store
2020-12-14 11:55:48 +01:00
Nicolas Grekas
25f79ab808 minor #39444 [Notifier] [Discord] Fix exception message + test (OskarStark)
This PR was merged into the 5.2 branch.

Discussion
----------

[Notifier] [Discord] Fix exception message + test

| Q             | A
| ------------- | ---
| Branch?       | 5.2
| Bug fix?      | yes
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | ---
| License       | MIT
| Doc PR        | ---

Before this PR the message was wrong, "less than 2000" is not correct, it can have 2000 chars, but not more.

Commits
-------

01623391f6 [Notifier][Discord] Fix exception message + test
2020-12-14 11:49:49 +01:00
Nicolas Grekas
c052542e65 minor #39451 [Serializer] Fix EncoderInterface::encode() return type (jeroennoten)
This PR was merged into the 4.4 branch.

Discussion
----------

[Serializer] Fix EncoderInterface::encode() return type

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

I might have missed something (in that case, please let me know), but I believe that `EncoderInterface::encode()` will and should always return a `string`. This makes more sense because `DecoderInterface::decode()` only accepts a string as input.

Commits
-------

ae6f054cc1 Fix EncoderInterface::encode() return type
2020-12-14 11:44:27 +01:00
Jeroen Noten
ae6f054cc1 Fix EncoderInterface::encode() return type 2020-12-14 11:44:14 +01:00
Nicolas Grekas
43ab20e4f2 bug #39476 [Lock] Prevent store exception break combined store (dzubchik)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[Lock] Prevent store exception break combined store

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? |no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | Fix #39470 <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License       | MIT

Handle exception to preserve expected behavior - one or multiple stores could be unreachable in a moment and combined store will handle this according to strategy.

Commits
-------

0daff35bae [Lock] Prevent store exception break combined store
2020-12-14 11:21:44 +01:00
Dmytro Dzubenko
0daff35bae [Lock] Prevent store exception break combined store 2020-12-14 11:21:37 +01:00
Nicolas Grekas
936bab4b3b bug #39478 [FrameworkBundle] Fix missing kernel.build_dir on cache clear (chalasr)
This PR was merged into the 5.2 branch.

Discussion
----------

[FrameworkBundle] Fix missing kernel.build_dir on cache clear

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

Fixes post-upgrade cache:clear on 5.2.

Commits
-------

42abc059a6 Fix missing kernel.build_dir on cache clear
2020-12-14 11:19:29 +01:00
Pierre du Plessis
14c3614ac4 Remove check for unsupported PHP version 2020-12-14 12:10:03 +02:00
Oskar Stark
45b3a3062c [Notifier] Rename test method names
To stay consistent
2020-12-14 10:19:36 +01:00
Fabien Potencier
e05b8ef230 Merge branch '5.1' into 5.2
* 5.1:
  Fix tests
  Fix applyVersion tests
  [Notifier][Free Mobile] Fix wrong scheme in mapping
2020-12-14 08:03:22 +01:00
Fabien Potencier
9d73e7caf0 Merge branch '4.4' into 5.1
* 4.4:
  Fix tests
2020-12-14 08:03:02 +01:00
Jérémy Derussé
d651fb539c
Fix tests 2020-12-13 23:21:11 +01:00
Jérémy Derussé
fe40ddb013
Fix applyVersion tests 2020-12-13 19:27:25 +01:00
Robin Chalas
42abc059a6 Fix missing kernel.build_dir on cache clear 2020-12-12 23:17:42 +01:00
Jérémy Derussé
07402f4af3
Dont allow unserializing classes with a destructor - 5.1 2020-12-12 17:30:27 +01:00
Fabien Potencier
7c7366a82a bug #39456 [Notifier] [Free Mobile] Fix wrong scheme in mapping (OskarStark)
This PR was merged into the 5.1 branch.

Discussion
----------

[Notifier] [Free Mobile] Fix wrong scheme in mapping

| Q             | A
| ------------- | ---
| Branch?       | 5.1
| Bug fix?      | yes
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | ---
| License       | MIT
| Doc PR        | ---

The scheme is `freemobile`, not `free-mobile`

For reference:
134af39538/src/Symfony/Component/Notifier/Bridge/FreeMobile/FreeMobileTransportFactory.php (L41-L43)

Commits
-------

6eae1951ee [Notifier][Free Mobile] Fix wrong scheme in mapping
2020-12-12 09:30:23 +01:00
Alexander M. Turek
07aa1ed143 Merge branch '5.1' into 5.2
* 5.1:
  Use more explicit variable name
  Fix wrong comment about SES region
  [Mailer] [Sendgrid] Use $scheme variable to stay consistent
  [Mailer] [Amazon] Fix @param annotation
  [Mailer] Rename testsuites
  Remove void return type from test methods
  Remove void return type from test methods
  [Notifier] Remove void return type from test methods
2020-12-12 00:40:07 +01:00
Alexander M. Turek
7d846d3e82 Merge branch '4.4' into 5.1
* 4.4:
  Use more explicit variable name
  Fix wrong comment about SES region
  [Mailer] [Sendgrid] Use $scheme variable to stay consistent
  [Mailer] [Amazon] Fix @param annotation
  [Mailer] Rename testsuites
  Remove void return type from test methods
2020-12-12 00:11:02 +01:00
Jérémy Derussé
cb05fab4c7
bug #39442 Fix enabled key for ratelimiter config (pierredup)
This PR was squashed before being merged into the 5.2 branch.

Discussion
----------

Fix enabled key for ratelimiter config

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

The `enabled` key doesn't always exist in the config when using the ratelimiter component, which causes an undefined index error

Commits
-------

d48e2c2431 Fix enabled key for ratelimiter config
2020-12-11 21:33:35 +01:00
Pierre du Plessis
d48e2c2431
Fix enabled key for ratelimiter config 2020-12-11 21:33:24 +01:00
Vincent Langlet
337174fa4b
Use more explicit variable name 2020-12-11 17:32:02 +01:00
Nicolas Grekas
8f6c52a19a minor #39467 Fix wrong comment about SES region (jderusse)
This PR was merged into the 4.4 branch.

Discussion
----------

Fix wrong comment about SES region

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

This list is wrong (or maybe no more exact). And maintain such list does not make sens in code.

https://docs.aws.amazon.com/general/latest/gr/ses.html

Commits
-------

759774750e Fix wrong comment about SES region
2020-12-11 16:21:07 +01:00
Nicolas Grekas
8d6794f6b6 minor #39459 Remove void return type from test methods (OskarStark)
This PR was merged into the 4.4 branch.

Discussion
----------

Remove void return type from test methods

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

cc @nicolas-grekas

Commits
-------

94f823fd4a Remove void return type from test methods
2020-12-11 16:19:13 +01:00
Nicolas Grekas
38b2968549 minor #39460 Remove void return type from test methods (OskarStark)
This PR was merged into the 5.1 branch.

Discussion
----------

Remove void return type from test methods

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

This PR follows #39459

cc @nicolas-grekas

Commits
-------

6e6c3ba1a0 Remove void return type from test methods
2020-12-11 16:16:17 +01:00
Jérémy Derussé
759774750e
Fix wrong comment about SES region 2020-12-11 15:43:01 +01:00
Maxime Steinhausser
278688deeb minor #39465 [Mailer] [Sendgrid] Use $scheme variable to stay consistent (OskarStark)
This PR was merged into the 4.4 branch.

Discussion
----------

[Mailer] [Sendgrid] Use $scheme variable to stay consistent

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

Its used like this in all other mailer bridges

Commits
-------

1a40d7c75a [Mailer] [Sendgrid] Use $scheme variable to stay consistent
2020-12-11 15:13:33 +01:00
Maxime Steinhausser
7f49e15f40 minor #39464 [Mailer] [Amazon] Fix @param annotation (OskarStark)
This PR was merged into the 4.4 branch.

Discussion
----------

[Mailer] [Amazon] Fix @param annotation

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

Commits
-------

514881c708 [Mailer] [Amazon] Fix @param annotation
2020-12-11 15:11:17 +01:00
Oskar Stark
6eae1951ee [Notifier][Free Mobile] Fix wrong scheme in mapping 2020-12-11 14:41:25 +01:00
Oskar Stark
1a40d7c75a [Mailer] [Sendgrid] Use $scheme variable to stay consistent 2020-12-11 14:18:32 +01:00
Oskar Stark
514881c708 [Mailer] [Amazon] Fix @param annotation 2020-12-11 14:09:19 +01:00
Oskar Stark
9ebfa6034a [Mailer] Rename testsuites
to stay consistent with other bridges
2020-12-11 13:58:29 +01:00
Oskar Stark
6e6c3ba1a0 Remove void return type from test methods 2020-12-11 13:47:35 +01:00
Oskar Stark
94f823fd4a Remove void return type from test methods 2020-12-11 13:39:31 +01:00
Oskar Stark
616df0c6a3 [Notifier] Remove void return type from test methods 2020-12-11 11:27:22 +01:00
Nicolas Grekas
26e1e6b18e minor #39450 [Notifier] [Telegram] Remove void return type from test methods (OskarStark)
This PR was merged into the 5.2 branch.

Discussion
----------

[Notifier] [Telegram] Remove void return type from test methods

| Q             | A
| ------------- | ---
| Branch?       | 5.2
| Bug fix?      | no
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | ---
| License       | MIT
| Doc PR        | ---

cc @nicolas-grekas

Commits
-------

e48fcdcd34 [Notifier][Telegram] Remove void return type from test methods
2020-12-11 11:26:47 +01:00
Nicolas Grekas
bfc89cdbc0 minor #39449 [Notifier] [Esendex] Remove void return type from test methods (OskarStark)
This PR was merged into the 5.2 branch.

Discussion
----------

[Notifier] [Esendex] Remove void return type from test methods

| Q             | A
| ------------- | ---
| Branch?       | 5.2
| Bug fix?      | no
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | ---
| License       | MIT
| Doc PR        | ---

cc @nicolas-grekas

Commits
-------

6c185d19ad [Notifier][Esendex] Remove void return type from test methods
2020-12-11 11:25:06 +01:00
Nicolas Grekas
cd0e3cfbb7 minor #39446 [Notifier] Move ext-json below php requirement to stay consistent (OskarStark)
This PR was merged into the 5.2 branch.

Discussion
----------

[Notifier] Move ext-json below php requirement to stay consistent

| Q             | A
| ------------- | ---
| Branch?       | 5.2
| Bug fix?      | no
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | ---
| License       | MIT
| Doc PR        | ---

Commits
-------

a3b84c9469 [Notifier] Move ext-json below php requirement to stay consistent
2020-12-11 11:24:08 +01:00
Nicolas Grekas
b2dd4d668b minor #39448 [Notifier] [Sendinblue] Remove void return type from test methods (OskarStark)
This PR was merged into the 5.2 branch.

Discussion
----------

[Notifier] [Sendinblue] Remove void return type from test methods

| Q             | A
| ------------- | ---
| Branch?       | 5.2
| Bug fix?      | no
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | ---
| License       | MIT
| Doc PR        | ---

cc @nicolas-grekas

Commits
-------

15f523e6ad [Notifier][Sendinblue] Remove void return type from test methods
2020-12-11 11:23:03 +01:00
Nicolas Grekas
8dc71e3bca minor #39447 [Notifier] [GoogleChat] Remove void return type from test methods (OskarStark)
This PR was merged into the 5.2 branch.

Discussion
----------

[Notifier] [GoogleChat] Remove void return type from test methods

| Q             | A
| ------------- | ---
| Branch?       | 5.2
| Bug fix?      | no
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | ---
| License       | MIT
| Doc PR        | ---

cc @nicolas-grekas

Commits
-------

de2bf6d98a [Notifier][GoogleChat] Remove void return type from test methods
2020-12-11 11:22:15 +01:00
Nicolas Grekas
5af70a1008 Cleanup composer.json files 2020-12-11 11:20:06 +01:00
Oskar Stark
e48fcdcd34 [Notifier][Telegram] Remove void return type from test methods 2020-12-11 11:18:47 +01:00
Oskar Stark
6c185d19ad [Notifier][Esendex] Remove void return type from test methods 2020-12-11 11:17:01 +01:00
Oskar Stark
15f523e6ad [Notifier][Sendinblue] Remove void return type from test methods 2020-12-11 11:15:34 +01:00
Oskar Stark
de2bf6d98a [Notifier][GoogleChat] Remove void return type from test methods 2020-12-11 11:13:49 +01:00
Oskar Stark
a3b84c9469 [Notifier] Move ext-json below php requirement to stay consistent 2020-12-11 11:06:41 +01:00
Oskar Stark
01623391f6 [Notifier][Discord] Fix exception message + test 2020-12-11 10:11:18 +01:00
Oskar Stark
32014199d0 [Notifier] Add PHP 8 support for bridges 2020-12-11 10:00:54 +01:00
Nicolas Grekas
613ac0c0e9 Merge branch '5.1' into 5.2
* 5.1:
  [PropertyInfo][Serializer] Fixed extracting ignored properties
  [travis] fix checking if the current branch has same major as the next release
2020-12-10 23:56:34 +01:00
javer
594ce465ce [PropertyInfo][Serializer] Fixed extracting ignored properties 2020-12-10 23:52:33 +01:00
Jérémy Derussé
25a8a0a81b
Fix CS in Changelogs in 5.2 2020-12-10 21:03:43 +01:00
Alexander M. Turek
e4f757d948 Merge branch '5.1' into 5.2
* 5.1:
  Fix licence
  Fix CS in link binary
  [Cache] remove no-op
  Fix CS in Changelogs
  [Notifier][Sinch] Add tests
  [Notifier] [Nexmo] Add tests
  [Notifier][OvhCloud] Add tests
  [Notifier] [Free Mobile] Rename method to match other bridges
  [Cache] fix setting "read_timeout" when using Redis
  Fix CS in changelogs
  [Notifier] Streamline README files
2020-12-10 20:16:15 +01:00
Alexander M. Turek
59d32c1e72 minor #39383 [Notifier] Streamline README files (OskarStark)
This PR was merged into the 5.1 branch.

Discussion
----------

[Notifier] Streamline README files

| Q             | A
| ------------- | ---
| Branch?       | 5.1
| Bug fix?      | no
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | --
| License       | MIT
| Doc PR        | --

This should be considered a bug fix as it does not touches any PHP file.

I will continue the work for `5.2` branch after the merge

Commits
-------

dfddc899ce [Notifier] Streamline README files
2020-12-10 19:54:36 +01:00
Robin Chalas
4ad158e519 minor #39437 Fix licence (jderusse)
This PR was merged into the 4.4 branch.

Discussion
----------

Fix licence

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

Backport of #39435 for 4.4 (the file has been renamed and the git history trapped me)

Commits
-------

6d7893cdaa Fix licence
2020-12-10 19:19:49 +01:00
Jérémy Derussé
6d7893cdaa
Fix licence 2020-12-10 19:10:51 +01:00
Nicolas Grekas
eb1a490261 minor #39435 Fix CS in Changelogs in 5.1 (jderusse)
This PR was merged into the 5.1 branch.

Discussion
----------

Fix CS in Changelogs in 5.1

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

Commits
-------

4557e4d55d Fix CS in Changelogs
2020-12-10 18:59:56 +01:00
Nicolas Grekas
4e7d0c16cd Merge branch '4.4' into 5.1
* 4.4:
  [Cache] remove no-op
2020-12-10 18:56:50 +01:00
Nicolas Grekas
0bc3deeebd [Cache] remove no-op 2020-12-10 18:56:42 +01:00
Jérémy Derussé
4557e4d55d
Fix CS in Changelogs 2020-12-10 18:56:13 +01:00
Oskar Stark
46d5fb1f30 [Notifier][Sinch] Add tests 2020-12-10 18:52:05 +01:00
Nicolas Grekas
185ba9cc9a minor #39404 [Notifier] [Nexmo] Add tests (OskarStark)
This PR was squashed before being merged into the 5.1 branch.

Discussion
----------

[Notifier] [Nexmo] Add tests

| Q             | A
| ------------- | ---
| Branch?       | 5.1
| Bug fix?      | yes
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | ---
| License       | MIT
| Doc PR        | ---

Commits
-------

8e566ef84d [Notifier] [Nexmo] Add tests
2020-12-10 18:50:52 +01:00
Oskar Stark
8e566ef84d [Notifier] [Nexmo] Add tests 2020-12-10 18:50:45 +01:00
Oskar Stark
0c3fe30513 [Notifier][OvhCloud] Add tests 2020-12-10 18:49:11 +01:00
Nicolas Grekas
ec23ebeec9 minor #39426 [Notifier] [Free Mobile] Rename method to match other bridges (OskarStark)
This PR was squashed before being merged into the 5.1 branch.

Discussion
----------

[Notifier] [Free Mobile] Rename method to match other bridges

| Q             | A
| ------------- | ---
| Branch?       | 5.1
| Bug fix?      | no
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | ---
| License       | MIT
| Doc PR        | ---

All other bridges use `create*` instead of `init*`

Commits
-------

f53ae7c40a [Notifier] [Free Mobile] Rename method to match other bridges
2020-12-10 18:45:24 +01:00
Oskar Stark
f53ae7c40a [Notifier] [Free Mobile] Rename method to match other bridges 2020-12-10 18:45:17 +01:00
Nicolas Grekas
bec247dbc7 Merge branch '4.4' into 5.1
* 4.4:
  [Cache] fix setting "read_timeout" when using Redis
  Fix CS in changelogs
2020-12-10 18:44:54 +01:00
Nicolas Grekas
9186d149df bug #39433 [Cache] fix setting "read_timeout" when using Redis (nicolas-grekas)
This PR was merged into the 4.4 branch.

Discussion
----------

[Cache] fix setting "read_timeout" when using Redis

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

Being inspired by #39431

Commits
-------

7acca31e66 [Cache] fix setting "read_timeout" when using Redis
2020-12-10 18:39:37 +01:00
Nicolas Grekas
7acca31e66 [Cache] fix setting "read_timeout" when using Redis 2020-12-10 17:45:19 +01:00
Jérémy Derussé
a46cff26c6
Fix CS in changelogs 2020-12-10 17:34:26 +01:00
Alexander M. Turek
4f08a8a0dd Merge branch '5.1' into 5.2
* 5.1:
  [Notifier] [Twilio] Fix tests
  [Cache] Prevent notice on case matching metadata trick
  [Notifier][Slack] Remove :void from test methods
  [Notifier] Remove @internal annotation from notifier transports
  [Notifier][Twilio] Add tests
  [Notifier][Free Mobile] Tests
  [DI] The default index method wasn't used if the "index_by" attribute is missing
2020-12-10 15:02:11 +01:00
Maxime Steinhausser
243b370c72 minor #39427 [Serializer][Validator] Mention annotation loaders handle PHP8 attributes (ogizanagi)
This PR was merged into the 5.2 branch.

Discussion
----------

[Serializer][Validator] Mention annotation loaders handle PHP8 attributes

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

Just a small note for the ones reading docblocks first and expecting to find a PhpAttributeLoader or whatever: the annotation loaders handle both doctrine annotations & PHP 8 attributes.
The route loader already mentions this.

Commits
-------

3cbe758df3 [Serializer][Validator] Mention annotation loaders handle PHP8 attributes
2020-12-10 14:55:54 +01:00
Alexander M. Turek
651bd12d75 Merge branch '4.4' into 5.1
* 4.4:
  [Cache] Prevent notice on case matching metadata trick
  [DI] The default index method wasn't used if the "index_by" attribute is missing
2020-12-10 14:41:20 +01:00
Nicolas Grekas
359bcc5686 bug #39228 [HttpClient] Fix content swallowed by AsyncClient initializer (jderusse)
This PR was merged into the 5.2 branch.

Discussion
----------

[HttpClient] Fix content swallowed by AsyncClient initializer

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

I'm not sure if it should be fixed in RetryableHttpClient or AsycClient.
The issue is: when the Strategy needs the body to take a decision BUT decide to NOT retry the request, the content is "lost"

In fact, when the first chunk is yield, the AsyncResponse's initializer is stopped, and nothing consume the remaining chunks. Moreover, because the `passthru` were disabled before yielding the first chunk in RetryableHttpClient, the callback is never called again to yield the remaining content.

Commits
-------

d324271691 Fix content swallowed by AsyncClient initializer
2020-12-10 14:39:20 +01:00
Jérémy Derussé
d324271691 Fix content swallowed by AsyncClient initializer 2020-12-10 14:39:06 +01:00
Maxime Steinhausser
3cbe758df3 [Serializer][Validator] Mention annotation loaders handle PHP8 attributes 2020-12-10 14:01:49 +01:00
Oskar Stark
f7f5f869cf [Notifier] [Twilio] Fix tests 2020-12-10 13:14:12 +01:00
Oskar Stark
dfddc899ce [Notifier] Streamline README files 2020-12-10 08:54:19 +01:00
Bastien Jaillot
a91ac74906 [Cache] Prevent notice on case matching metadata trick
On saving an array of one element with a int key of strlen 10
it matches the first conditions of the trick used to save metadata.

> Notice: Trying to access array offset on value of type int

Casting it to string fixes it.
2020-12-10 08:50:50 +01:00
Oskar Stark
483ea426eb [Notifier][Slack] Remove :void from test methods 2020-12-10 08:36:59 +01:00
Fabien Potencier
0fa187d0c6 Fix CS 2020-12-10 08:10:12 +01:00
Oskar Stark
21c47680f9 [Notifier][Discord] Make webhookId argument required 2020-12-10 08:09:23 +01:00
Fabien Potencier
2dd4561d3f bug #39203 [DI] Fix not working if only "default_index_method" used (malteschlueter)
This PR was merged into the 4.4 branch.

Discussion
----------

[DI] Fix not working if only "default_index_method" used

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

The default index method wasn't used if the "index_by" attribute is missing. The documentation is showing an example, see https://symfony.com/doc/current/service_container/tags.html#tagged-services-with-index.

This problem also appears in symfony 5.

I created two example projects, the first in the current behaviour and the second with my bugfix branch.

Current 4.4: https://github.com/malteschlueter/symfony-reproducers/blob/bugfix/dependency-injection-default-index-method-not-working--not-fixed/tests/HandlerCollectionTest.php

This bugfix branch: https://github.com/malteschlueter/symfony-reproducers/blob/bugfix/dependency-injection-default-index-method-not-working--with-fix/tests/HandlerCollectionTest.php

Commits
-------

eb25d5c275 [DI] The default index method wasn't used if the "index_by" attribute is missing
2020-12-10 08:05:48 +01:00
Fabien Potencier
25dc5ee6c4 bug #39409 [Notifier] [Twilio] Add tests (OskarStark)
This PR was merged into the 5.1 branch.

Discussion
----------

[Notifier] [Twilio] Add tests

| Q             | A
| ------------- | ---
| Branch?       | 5.1
| Bug fix?      | yes
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | ---
| License       | MIT
| Doc PR        | ---

Commits
-------

568523bf7a [Notifier][Twilio] Add tests
2020-12-10 07:51:26 +01:00
Fabien Potencier
e8e01d56d2 minor #39403 [Notifier] [Free Mobile] Add test (OskarStark)
This PR was merged into the 5.1 branch.

Discussion
----------

[Notifier] [Free Mobile] Add test

| Q             | A
| ------------- | ---
| Branch?       | 5.1
| Bug fix?      | no
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | ---
| License       | MIT
| Doc PR        | ---

Commits
-------

f7d5c48313 [Notifier][Free Mobile] Tests
2020-12-10 07:48:27 +01:00
Alexander M. Turek
9052b2b1ee bug #39401 [DoctrineBridge] no-op RegisterUidTypePass if DBAL types aren't loaded (craue)
This PR was squashed before being merged into the 5.2 branch.

Discussion
----------

[DoctrineBridge] no-op RegisterUidTypePass if DBAL types aren't loaded

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

Commits
-------

765ae9e16c [DoctrineBridge] no-op RegisterUidTypePass if DBAL types aren't loaded
2020-12-10 00:03:16 +01:00
Christian Raue
765ae9e16c [DoctrineBridge] no-op RegisterUidTypePass if DBAL types aren't loaded 2020-12-10 00:03:08 +01:00
Alexander M. Turek
65225b9a1b minor #39414 [Notifier] Remove @internal annotation from notifier transports (OskarStark)
This PR was merged into the 5.2 branch.

Discussion
----------

[Notifier] Remove @internal annotation from notifier transports

| Q             | A
| ------------- | ---
| Branch?       | 5.2
| Bug fix?      | yes
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | ---
| License       | MIT
| Doc PR        | ---

Same like https://github.com/symfony/symfony/pull/39380 but for `5.2`

Commits
-------

3d8c55e75c [Notifier] Remove @internal annotation from notifier transports
2020-12-09 21:31:50 +01:00
Alexander M. Turek
8a003527c7 minor #39380 [Notifier] Remove @internal annotation from notifier transports (OskarStark)
This PR was merged into the 5.1 branch.

Discussion
----------

[Notifier] Remove @internal annotation from notifier transports

| Q             | A
| ------------- | ---
| Branch?       | 5.1
| Bug fix?      | yes
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | ---
| License       | MIT
| Doc PR        | ---

All other transports does not have the `@internal` annotation, so I think we can safely remove it.

I consider this a bugfix, as this does not break BC.

cc @fabpot

Commits
-------

d75f50d3a7 [Notifier] Remove @internal annotation from notifier transports
2020-12-09 21:30:32 +01:00
Nicolas Grekas
20cd8c62ce Merge branch '5.1' into 5.2
* 5.1:
  [PhpUnitBridge] CS fix
  [Notifier] Only use sprintf instead of sprintf and string concat
  [PhpUnitBridge] Fix PHP 5.5 compatibility
  Add missing param annotation abouts $fileLinkFormat
  [Form] Fixed StringUtil::trim() to trim ZERO WIDTH SPACE (U+200B) and SOFT HYPHEN (U+00AD)
  23412 Stop treating multiline resources as globs
2020-12-09 19:54:12 +01:00
Nicolas Grekas
58f3302e42 Merge branch '4.4' into 5.1
* 4.4:
  [PhpUnitBridge] CS fix
  [PhpUnitBridge] Fix PHP 5.5 compatibility
  Add missing param annotation abouts $fileLinkFormat
  [Form] Fixed StringUtil::trim() to trim ZERO WIDTH SPACE (U+200B) and SOFT HYPHEN (U+00AD)
  23412 Stop treating multiline resources as globs
2020-12-09 19:49:55 +01:00
Nicolas Grekas
52a0233905 [PhpUnitBridge] CS fix 2020-12-09 19:44:45 +01:00
Nicolas Grekas
35bb7bd20a minor #39411 [Notifier] Remove trailing argument in tests (OskarStark)
This PR was merged into the 5.2 branch.

Discussion
----------

[Notifier] Remove trailing argument in tests

| Q             | A
| ------------- | ---
| Branch?       | 5.2
| Bug fix?      | no
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | ---
| License       | MIT
| Doc PR        | ---

Commits
-------

d3fb308bd1 [Notifier] Remove trailing argument in tests
2020-12-09 19:31:30 +01:00
Oskar Stark
ca65c54018 [Notifier] Only use sprintf instead of sprintf and string concat 2020-12-09 19:30:29 +01:00
Thomas Calvet
fe7abcd1e9 [PhpUnitBridge] Fix PHP 5.5 compatibility 2020-12-09 17:54:32 +01:00
Jérémy Derussé
a41e7f0771
Fix exception thrown by Form when converting UUID 2020-12-09 17:04:36 +01:00
Oskar Stark
d75f50d3a7 [Notifier] Remove @internal annotation from notifier transports 2020-12-09 15:30:49 +01:00
Oskar Stark
3d8c55e75c [Notifier] Remove @internal annotation from notifier transports 2020-12-09 15:29:32 +01:00
Oskar Stark
d3fb308bd1 [Notifier] Remove trailing argument in tests 2020-12-09 15:05:59 +01:00
Oskar Stark
568523bf7a [Notifier][Twilio] Add tests 2020-12-09 14:38:16 +01:00
Maxime Steinhausser
bdcd745232 [Serializer] Make fabbot happy with 5.2 tests CS 2020-12-09 14:07:31 +01:00
Oskar Stark
f7d5c48313 [Notifier][Free Mobile] Tests 2020-12-09 13:53:43 +01:00
Nicolas Grekas
32a56a6389 Add missing param annotation abouts $fileLinkFormat 2020-12-09 12:15:38 +01:00
Nicolas Grekas
55d2723c84 bug #39142 [Config] Stop treating multiline resources as globs (michaelKaefer)
This PR was merged into the 4.4 branch.

Discussion
----------

[Config] Stop treating multiline resources as globs

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

Would fix the linked issue.

In https://github.com/symfony/symfony/issues/22938 it was suggested to enhance the glob-detection logic by detecting newlines.

Cons:
- it only solves an edge case
- it is not possible to use a multiline glob (like `bar\nbaz*.txt`) as a resource anymore - maybe in another edge case this is needed

Commits
-------

1e3baad386 23412 Stop treating multiline resources as globs
2020-12-09 09:58:17 +01:00
Alexander M. Turek
558ce1b4d3 bug #39341 [Form] Fixed StringUtil::trim() to trim ZERO WIDTH SPACE (U+200B) and SOFT HYPHEN (U+00AD) (pmishev)
This PR was merged into the 4.4 branch.

Discussion
----------

[Form] Fixed StringUtil::trim() to trim ZERO WIDTH SPACE (U+200B) and SOFT HYPHEN (U+00AD)

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | Fix #39230 <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License       | MIT
<!--
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.
-->

Commits
-------

258bea7fd5 [Form] Fixed StringUtil::trim() to trim ZERO WIDTH SPACE (U+200B) and SOFT HYPHEN (U+00AD)
2020-12-08 18:57:51 +01:00
Nicolas Grekas
4df63ab450 bug #39268 [HttpClient] Use decoration instead of class replacement for mock factory (GaryPEGEOT)
This PR was squashed before being merged into the 5.2 branch.

Discussion
----------

[HttpClient] Use decoration instead of class replacement for mock factory

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

Commits
-------

9a9823c99a [HttpClient] Use decoration instead of class replacement for mock factory
2020-12-08 18:14:40 +01:00
Gary PEGEOT
9a9823c99a [HttpClient] Use decoration instead of class replacement for mock factory 2020-12-08 18:14:23 +01:00
Nicolas Grekas
2d73d4a880 Merge branch '5.1' into 5.2
* 5.1:
  [PhpUnitBridge] Fix CS for PHP 5.5
2020-12-08 18:06:25 +01:00
Nicolas Grekas
ec09d68df1 Merge branch '4.4' into 5.1
* 4.4:
  [PhpUnitBridge] Fix CS for PHP 5.5
2020-12-08 18:06:17 +01:00
Nicolas Grekas
236400c03a [PhpUnitBridge] Fix CS for PHP 5.5 2020-12-08 18:05:36 +01:00
Nicolas Grekas
555697df61 Merge branch '5.1' into 5.2
* 5.1:
  Update .php_cs.dist
  Apply "visibility_required" CS rule to constants
2020-12-08 18:03:37 +01:00
Nicolas Grekas
a8b992f8a2 Merge branch '4.4' into 5.1
* 4.4:
  Update .php_cs.dist
  Apply "visibility_required" CS rule to constants
2020-12-08 18:02:38 +01:00
Nicolas Grekas
ff22d30cb0 Apply "visibility_required" CS rule to constants
php-cs-fixer fix --rules='{"visibility_required": ["property", "method", "const"]}'
2020-12-08 17:59:59 +01:00
Nicolas Grekas
f37f56c1bb Merge branch '5.1' into 5.2
* 5.1:
  minor cs fix
  [Config][TwigBundle] Fixed syntax error in config
  [DI] Fix Xdebug 3.0 detection
  Use php8 stable
  [Notifier] Streamline changelogs of notifier bridges
  [Cache] fix checking for redis_sentinel support
  [Messenger] Fixed wording in php doc
  [Intl] Update the ICU data to 68.1
  [FrameworkBundle] acces public-deprecated services via the private container to remove false-positive deprecations
  Remove unused @throws tags and handling of never thrown exceptions
  [PhpUnitBridge] Fix disabling DeprecationErrorHandler from phpunit configuration file
2020-12-08 17:43:38 +01:00
Nicolas Grekas
a2f073472f Merge branch '4.4' into 5.1
* 4.4:
  minor cs fix
  [Config][TwigBundle] Fixed syntax error in config
  [DI] Fix Xdebug 3.0 detection
  Use php8 stable
  [Cache] fix checking for redis_sentinel support
  [Intl] Update the ICU data to 68.1
  Remove unused @throws tags and handling of never thrown exceptions
  [PhpUnitBridge] Fix disabling DeprecationErrorHandler from phpunit configuration file
2020-12-08 17:43:25 +01:00
Malte Schlüter
eb25d5c275 [DI] The default index method wasn't used if the "index_by" attribute is missing 2020-12-08 17:11:59 +01:00
Nicolas Grekas
a7fcb0b84e minor cs fix 2020-12-08 15:13:31 +01:00
Alexander M. Turek
8f331f2df2 bug #39334 [Config][TwigBundle] Fixed syntax error in config (Nyholm)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[Config][TwigBundle] Fixed syntax error in config

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

Sorry for such small PR. I found this when I was parsing the yaml after running `bin/console config:dump-reference TwigBundle`

#SymfonyHackday

Commits
-------

04d369d336 [Config][TwigBundle] Fixed syntax error in config
2020-12-08 15:10:36 +01:00
Nyholm
04d369d336 [Config][TwigBundle] Fixed syntax error in config 2020-12-08 15:10:25 +01:00
Nicolas Grekas
891e2afb64 bug #39196 [DI] Fix Xdebug 3.0 detection (vertexvaar)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[DI] Fix Xdebug 3.0 detection

| Q             | A
| ------------- | ---
| Branch?       | 4.4 (for bug fixes)
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #39195
| License       | MIT
| Doc PR        | n/a

Xdebug 3.0 removed the function `xdebug_is_enabled()`. To detect if Xdebug 3.0 is installed (it doesn't even need to be enabled to reproduce the bug) i added `function_exists('xdebug_info')`. AFAIS `xdebug_info()` is available in Xdebug >= 3.0 only.

Commits
-------

38f8edddb1 [DI] Fix Xdebug 3.0 detection
2020-12-08 15:03:26 +01:00
Oliver Eglseder
38f8edddb1 [DI] Fix Xdebug 3.0 detection 2020-12-08 15:03:00 +01:00
Oskar Stark
95bcab29d1 [Notifier] Streamline changelogs of notifier bridges 2020-12-08 14:24:03 +01:00
Wouter de Jong
9a7034efe3 bug #39375 [SecurityBundle] fix LDAP-based HTTP Basic Auth entry point registration (xabbuh)
This PR was merged into the 5.2 branch.

Discussion
----------

[SecurityBundle] fix LDAP-based HTTP Basic Auth entry point registration

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

Commits
-------

67d6624c2f fix LDAP-based HTTP Basic Auth entry point registration
2020-12-08 13:15:04 +01:00
Nicolas Grekas
cba70a6547 bug #39226 [PhpUnitBridge] Fix disabling DeprecationErrorHandler from PHPUnit configuration file (fancyweb)
This PR was merged into the 4.4 branch.

Discussion
----------

[PhpUnitBridge] Fix disabling DeprecationErrorHandler from PHPUnit configuration file

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | https://github.com/symfony/symfony/issues/38239
| License       | MIT
| Doc PR        | -

The linked issue description is right, the bridge's bootstrap is hit before the env variables from the phpunit.xml file are read and set. So the easiest solution is to read it ourselves in the root script (like we already do for some of them).

Commits
-------

41158b8878 [PhpUnitBridge] Fix disabling DeprecationErrorHandler from phpunit configuration file
2020-12-08 12:21:32 +01:00
Nicolas Grekas
d4fa223c5b minor #39379 [FrameworkBundle] fix lowest required HttpFoundation component (xabbuh)
This PR was merged into the 5.2 branch.

Discussion
----------

[FrameworkBundle] fix lowest required HttpFoundation component

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

Commits
-------

cdb1c2e6f9 fix lowest required HttpFoundation component
2020-12-08 12:19:55 +01:00
Nicolas Grekas
1ea5a8c3ce minor #39246 [HttpFoundation] Throws cleanup (kick-the-bucket)
This PR was merged into the 4.4 branch.

Discussion
----------

[HttpFoundation] Throws cleanup

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

The actual throw statements have been removed years ago, but the annotations stayed.
Such annotations fool static analysis tools to trigger false positives for unhandled exceptions.

Commits
-------

8b9b62048c Remove unused @throws tags and handling of never thrown exceptions
2020-12-08 12:12:36 +01:00
Nicolas Grekas
5f08c617cd bug #39298 [Cache] Fixed incorrect usage of UNLINK with PHPRedis with Redis < 4.0 (wickex)
This PR was merged into the 5.2 branch.

Discussion
----------

[Cache] Fixed incorrect usage of UNLINK with PHPRedis with Redis < 4.0

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

Currently, deleting cache keys is broken for users using PhpRedis with Redis-server < 4.0.0. The current implementation expects PhpRedis to throw an exception if the 'unlink'-function is used but unavailable, after which it's supposed to switch to using the 'del'-function. Using the 'unlink'-function on lower Redis-server versions seems to not throw an exception, but instead it appears to silently fail.

This pull request changes this behavior and checks the Redis-server version instead. If the version is 4.0 or higher, it uses the unlink function. If not, it uses the del-function.

Also see https://redis.io/commands/unlink > "Available since 4.0.0".

(Footnote: this is one of my first times contributing to an open-source project and my first time contributing to Symfony. I've tried following the guidelines, but please let me know if I missed anything. I'm unsure how I would go about unit testing this specific bugfix due to it being dependent on the Redis version, so I omitted it. Please let me know if a unit test is indeed required for this and if so, let me know if you have any suggestions on how to go about that.)

Commits
-------

9363f3b973 [Cache] Fixed incorrect usage of UNLINK with PHPRedis with Redis < 4.0
2020-12-08 12:05:08 +01:00
Wickex
9363f3b973 [Cache] Fixed incorrect usage of UNLINK with PHPRedis with Redis < 4.0 2020-12-08 12:04:54 +01:00
Christian Flothmann
cdb1c2e6f9 fix lowest required HttpFoundation component 2020-12-08 11:49:51 +01:00
Nicolas Grekas
bd44eb69a2 [Cache] fix checking for redis_sentinel support 2020-12-08 11:44:58 +01:00
Nicolas Grekas
ed46cb5b25 bug #39361 [FrameworkBundle] acces public-deprecated services via the private container to remove false-positive deprecations (nicolas-grekas)
This PR was merged into the 5.1 branch.

Discussion
----------

[FrameworkBundle] acces public-deprecated services via the private container to remove false-positive deprecations

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

Something we missed in #36470 apparently.

Commits
-------

d502ba9e5d [FrameworkBundle] acces public-deprecated services via the private container to remove false-positive deprecations
2020-12-08 11:40:38 +01:00
Grégoire Pineau
e3354d974c [Messenger] Fixed wording in php doc 2020-12-08 10:57:28 +01:00
Christian Flothmann
67d6624c2f fix LDAP-based HTTP Basic Auth entry point registration 2020-12-08 10:17:19 +01:00
Jakub Zalas
f3eda44058
[Intl] Update the ICU data to 68.1 2020-12-08 08:18:40 +00:00
Fabien Potencier
fd34c9c22f bug #39358 [HttpFoundation] fix parsing some special chars with HeaderUtils::parseQuery() (nicolas-grekas)
This PR was merged into the 5.2 branch.

Discussion
----------

[HttpFoundation] fix parsing some special chars with HeaderUtils::parseQuery()

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

Same as #39357 for 5.2

Commits
-------

8682bdc521 [HttpFoundation] fix parsing some special chars with HeaderUtils::parseQuery()
2020-12-08 08:08:22 +01:00
Fabien Potencier
f4e1556199 Merge branch '5.1' into 5.2
* 5.1:
  [Serializer] Fixed serialize and denormalize return types
  Run intl-data tests on resources change
  [FrameworkBundle] fix preserving some special chars in the query string when redirecting
2020-12-08 08:07:34 +01:00
Fabien Potencier
dde0f3c999 Merge branch '4.4' into 5.1
* 4.4:
  Run intl-data tests on resources change
  [FrameworkBundle] fix preserving some special chars in the query string when redirecting
2020-12-08 08:06:06 +01:00
Fabien Potencier
a630685da1 bug #39357 [FrameworkBundle] fix preserving some special chars in the query string (nicolas-grekas)
This PR was merged into the 4.4 branch.

Discussion
----------

[FrameworkBundle] fix preserving some special chars in the query string

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

Commits
-------

6ecae5719c [FrameworkBundle] fix preserving some special chars in the query string when redirecting
2020-12-08 08:04:52 +01:00
Fabien Potencier
7652685ec1 minor #39337 [Serializer] Fixed serialize and denormalize return types (vudaltsov)
This PR was squashed before being merged into the 5.1 branch.

Discussion
----------

[Serializer] Fixed serialize and denormalize return types

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

Since #35235 `SerializerInterface::deserialize()` and `DenormalizerInterface::denormalize()` return types are no longer correct.

I suggest using `mixed` to allow custom denormalizers to denormalize to any type. For instance, I might add `ClosureDenormalizer` or `NullDenormalizer` or `ResourceDenormalizer`, technically there are no limits.

Commits
-------

67277e55f0 [Serializer] Fixed serialize and denormalize return types
2020-12-08 07:28:58 +01:00
vudaltsov
67277e55f0 [Serializer] Fixed serialize and denormalize return types 2020-12-08 07:28:50 +01:00
Fabien Potencier
619d54389e bug #39310 [Notifier] Add exception for deprecated slack dsn (malteschlueter)
This PR was merged into the 5.2 branch.

Discussion
----------

[Notifier] Add exception for deprecated slack dsn

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

The DSN for the Slack integration changed again from 5.1 to 5.2. There was the idea to output an exception for that.

Commits
-------

6b56b4c6f9 [Notifier] Add exception for deprecated slack dsn
2020-12-08 07:26:38 +01:00
Alexander M. Turek
cd3993ee88 Merge branch '5.1' into 5.2
* 5.1:
  [HttpFoundation] Removed obsolete test.
  [HttpFoundation] Fix TypeError: Argument 1 passed to JsonResponse::setJson() must be of the type string, object given
  [Security][Validator] Add missing Portuguese translations
  Add Croatian (hr) translations
2020-12-07 23:32:31 +01:00
Alexander M. Turek
2807a7950d [HttpFoundation] Removed obsolete test. 2020-12-07 23:31:01 +01:00
Alexander M. Turek
f8b9ee9333 Merge branch '4.4' into 5.1
* 4.4:
  [HttpFoundation] Fix TypeError: Argument 1 passed to JsonResponse::setJson() must be of the type string, object given
  [Security][Validator] Add missing Portuguese translations
  Add Croatian (hr) translations
2020-12-07 23:18:25 +01:00
Alexander M. Turek
306914a96d bug #39271 [HttpFoundation] Fix TypeError: Argument 1 passed to JsonResponse::setJson() must be of the type string, object given (sidz)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[HttpFoundation] Fix TypeError: Argument 1 passed to JsonResponse::setJson() must be of the type string, object given

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

This PR fixes the type error when user set `null` as data in the `new JsonResponse(null, 200, [], true)` and true in the fourth argument to mark that value is json.
```
TypeError: Argument 1 passed to Symfony\Component\HttpFoundation\JsonResponse::setJson() must be of the type string, object given, called in /home/projects/symfony/src/Symfony/Component/HttpFoundation/JsonResponse.php on line 52
```

Commits
-------

7fcba9611d [HttpFoundation] Fix TypeError: Argument 1 passed to JsonResponse::setJson() must be of the type string, object given
2020-12-07 23:02:04 +01:00
Oleg Zhulnev
7fcba9611d [HttpFoundation] Fix TypeError: Argument 1 passed to JsonResponse::setJson() must be of the type string, object given 2020-12-07 23:01:57 +01:00
Alexander M. Turek
6df4b04165 minor #39366 Fix: Indentation (OskarStark)
This PR was merged into the 5.2 branch.

Discussion
----------

Fix: Indentation

| Q             | A
| ------------- | ---
| Branch?       | 5.2
| Bug fix?      | no
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | ---
| License       | MIT
| Doc PR        | ---

Commits
-------

37fddad0f2 Fix: Indentation
2020-12-07 17:06:35 +01:00
Malte Schlüter
6b56b4c6f9 [Notifier] Add exception for deprecated slack dsn 2020-12-07 16:39:20 +01:00
Oskar Stark
37fddad0f2 Fix: Indentation 2020-12-07 16:02:25 +01:00
Oskar Stark
c0dda8bd03 Fix: Remove unused sprintf() parameters 2020-12-07 16:01:25 +01:00
Nicolas Grekas
d502ba9e5d [FrameworkBundle] acces public-deprecated services via the private container to remove false-positive deprecations 2020-12-07 14:48:27 +01:00
Nicolas Grekas
6ecae5719c [FrameworkBundle] fix preserving some special chars in the query string when redirecting 2020-12-07 13:08:17 +01:00
Nicolas Grekas
8682bdc521 [HttpFoundation] fix parsing some special chars with HeaderUtils::parseQuery() 2020-12-07 13:06:47 +01:00
Alexander M. Turek
03a072e07c minor #39345 [Security][Validator] Add missing Portuguese translations (NicolasJourdan)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[Security][Validator] Add missing Portuguese translations

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

Commits
-------

ad4f6f2093 [Security][Validator] Add missing Portuguese translations
2020-12-07 10:01:52 +01:00
Nicolas Jourdan
ad4f6f2093 [Security][Validator] Add missing Portuguese translations 2020-12-07 10:01:46 +01:00
Alexander M. Turek
4404e6a3e9 minor #39332 Add Croatian (hr) translations (jseparovic1)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

Add Croatian (hr) translations

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

#SymfonyHackday

Commits
-------

f2dbbd2e58 Add Croatian (hr) translations
2020-12-07 10:00:22 +01:00
Jurica Šeparović
f2dbbd2e58 Add Croatian (hr) translations 2020-12-07 10:00:14 +01:00
Jérémy Derussé
36f5ff1550
Add missing entries in gitattributes 2020-12-05 23:16:05 +01:00
pmishev
258bea7fd5 [Form] Fixed StringUtil::trim() to trim ZERO WIDTH SPACE (U+200B) and SOFT HYPHEN (U+00AD) 2020-12-05 20:51:30 +00:00
Alexander M. Turek
cb66c523fe [Notifier] Fix tests with PHPUnit 9.5. 2020-12-05 19:56:23 +01:00
Alexander M. Turek
dbc1db21cd Merge branch '5.1' into 5.2
* 5.1:
  Fix merge.
  Fix CS
  [Messenger] Test generated SQL
  [Config] YamlReferenceDumper: No default value required for VariableNode with array example
  Remove PHPUnit configuration files from components without tests.
  [DependencyInjection] Fix container linter for union types.
2020-12-05 19:32:58 +01:00
Alexander M. Turek
7c31fa0537 Fix merge. 2020-12-05 19:20:45 +01:00
Alexander M. Turek
f13821e881 Merge branch '4.4' into 5.1 2020-12-05 18:55:33 +01:00
Fabien Potencier
bda2dcdf93 bug #39251 [DependencyInjection] Fix container linter for union types (derrabus)
This PR was merged into the 4.4 branch.

Discussion
----------

[DependencyInjection] Fix container linter for union types

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

Commits
-------

e26893b122 [DependencyInjection] Fix container linter for union types.
2020-12-05 18:12:03 +01:00
Alexander M. Turek
cf07627956 minor #39214 [Messenger] Test generated SQL (derrabus)
This PR was merged into the 4.4 branch.

Discussion
----------

[Messenger] Test generated SQL

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

Follow-up to #39166.

This is an attempt to the SQL generated by the `Symfony\Component\Messenger\Transport\Doctrine\Connection::get()` method. The challange was to create a locking SELECT statement, taking into account the different ways to create a lock in different SQL dialects.

This test verifies if the correct lock statements are generated for MySQL and SQL Server.

Commits
-------

1f1b62afb6 [Messenger] Test generated SQL
2020-12-05 18:10:39 +01:00
Fabien Potencier
fd3c60b315 Fix CS 2020-12-05 18:09:55 +01:00
Alexander M. Turek
1f1b62afb6 [Messenger] Test generated SQL 2020-12-05 18:08:48 +01:00
Nyholm
9104fd4539
[Config] YamlReferenceDumper: No default value required for VariableNode with array example 2020-12-05 17:41:45 +01:00
Alexander M. Turek
710340dfb2 Remove PHPUnit configuration files from components without tests. 2020-12-05 17:36:14 +01:00
Fabien Potencier
2f607dea7d Merge branch '5.1' into 5.2
* 5.1:
  [Messenger] StopWorkersCommand improve doc helper
  Added compatibility with PHPunit 9.5
  do not apply the Valid constraint on scalar form data
  [Test] Reproduce issue with cascading validation
  [SecurityBundle] Don't use the container as resource type in fixtures.
  Fix bug with whitespace in Kernel::stripComments()
2020-12-05 17:05:27 +01:00
Fabien Potencier
7e577b9cd9 Merge branch '4.4' into 5.1
* 4.4:
  [Messenger] StopWorkersCommand improve doc helper
  Added compatibility with PHPunit 9.5
  do not apply the Valid constraint on scalar form data
  [Test] Reproduce issue with cascading validation
  [SecurityBundle] Don't use the container as resource type in fixtures.
  Fix bug with whitespace in Kernel::stripComments()
2020-12-05 17:05:09 +01:00
Fabien Potencier
21ef411cc9 bug #39333 [Form] do not apply the Valid constraint on scalar form data (lchrusciel, xabbuh)
This PR was merged into the 4.4 branch.

Discussion
----------

[Form] do not apply the Valid constraint on scalar form data

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

#SymfonyHackday

Commits
-------

453bb3ebde do not apply the Valid constraint on scalar form data
41b9457887 [Test] Reproduce issue with cascading validation
2020-12-05 17:02:18 +01:00
Fabien Potencier
935495868a bug #39331 [PhpUnitBridge] Fixed PHPunit 9.5 compatibility (wouterj)
This PR was merged into the 4.4 branch.

Discussion
----------

[PhpUnitBridge] Fixed PHPunit 9.5 compatibility

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

Let's see if this works 🍀

#SymfonyHackday

Commits
-------

5134de52f1 Added compatibility with PHPunit 9.5
2020-12-05 16:57:56 +01:00
Fabien Potencier
d0d0ee3c4f minor #39217 [Messenger] StopWorkersCommand improve doc helper (94noni)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[Messenger] StopWorkersCommand improve doc helper

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

Small improvement :)

Commits
-------

e136068743 [Messenger] StopWorkersCommand improve doc helper
2020-12-05 16:51:46 +01:00
Antoine Makdessi
e136068743 [Messenger] StopWorkersCommand improve doc helper 2020-12-05 16:51:39 +01:00
Wouter de Jong
5134de52f1 Added compatibility with PHPunit 9.5 2020-12-05 16:15:30 +01:00
Christian Flothmann
453bb3ebde do not apply the Valid constraint on scalar form data 2020-12-05 16:10:06 +01:00
Łukasz Chruściel
41b9457887 [Test] Reproduce issue with cascading validation 2020-12-05 16:10:06 +01:00
Fabien Potencier
4ce800f840 minor #39324 [SecurityBundle] Don't use the container as resource type in fixtures (derrabus)
This PR was merged into the 4.4 branch.

Discussion
----------

[SecurityBundle] Don't use the container as resource type in fixtures

| 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 #39292: Some fixtures of SecurityBundle call config loaders and pass the whole container as resource type. This does not really make sense.

Commits
-------

e7e38b7213 [SecurityBundle] Don't use the container as resource type in fixtures.
2020-12-05 13:50:50 +01:00
Fabien Potencier
cdb1883843 bug #39220 [HttpKernel] Fix bug with whitespace in Kernel::stripComments() (ausi)
This PR was merged into the 4.4 branch.

Discussion
----------

[HttpKernel] Fix bug with whitespace in Kernel::stripComments()

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

`Kernel::stripComments()` removes significant whitespace in some cases.

I noticed this in one of the generated classes, the code `<?php include_once \dirname(__DIR__).'/file.php';` got replaced with `<?php include_once\dirname(__DIR__).'/file.php';` which is a syntax error.

Commits
-------

8d368e1fe3 Fix bug with whitespace in Kernel::stripComments()
2020-12-05 13:50:17 +01:00
Alexander M. Turek
e7e38b7213 [SecurityBundle] Don't use the container as resource type in fixtures. 2020-12-05 13:07:14 +01:00
Alexander M. Turek
72abcc3051 Merge branch '5.1' into 5.2
* 5.1:
  [HttpFoundation] Make test pass without Xdebug.
  [Mime] Leverage PHP 8's detection of CSV files.
  [HttpFoundation] Make sure we reuse the current PHP binary for the webserver process in functional tests.
  [FrameworkBundle] TextDescriptor::formatControllerLink checked method…
  Fix CS
  [HttpClient] throw clearer error when no scheme is provided
  Fix github pr template and include 5.2 for bugfixes
  [HttpFoundation] Ignore stack trace printed by Xdebug 3.
  fix lexing backslashes in single quoted strings
2020-12-05 11:51:53 +01:00
Alexander M. Turek
2cf0686f72 Merge branch '4.4' into 5.1
* 4.4:
  [HttpFoundation] Make test pass without Xdebug.
  [Mime] Leverage PHP 8's detection of CSV files.
  [HttpFoundation] Make sure we reuse the current PHP binary for the webserver process in functional tests.
  [FrameworkBundle] TextDescriptor::formatControllerLink checked method…
  Fix CS
  [HttpClient] throw clearer error when no scheme is provided
  Fix github pr template and include 5.2 for bugfixes
  [HttpFoundation] Ignore stack trace printed by Xdebug 3.
  fix lexing backslashes in single quoted strings
2020-12-05 11:32:07 +01:00
Alexander M. Turek
cf94f2a591 [HttpFoundation] Make test pass without Xdebug. 2020-12-05 09:52:36 +01:00
Fabien Potencier
4a2946b46d bug #39252 [Mime] Leverage PHP 8's detection of CSV files (derrabus)
This PR was merged into the 4.4 branch.

Discussion
----------

[Mime] Leverage PHP 8's detection of CSV files

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

Commits
-------

41a965cdc4 [Mime] Leverage PHP 8's detection of CSV files.
2020-12-05 09:45:34 +01:00
Alexander M. Turek
41a965cdc4 [Mime] Leverage PHP 8's detection of CSV files. 2020-12-05 09:25:17 +01:00
Fabien Potencier
66d3f22cdf minor #39295 [HttpFoundation] Make sure we reuse the current PHP binary for the webserver process in functional tests. (derrabus)
This PR was merged into the 4.4 branch.

Discussion
----------

[HttpFoundation] Make sure we reuse the current PHP binary for the webserver process in functional tests.

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

While debugging HttpFoundation's functional tests with different PHP binaries, I noticed that the webserver process that is started there would always use the `php` binary from my `$PATH` instead of the binary I'm running PHPUnit with.

This PR attempts to fix this by using the `PHP_BINARY` constant.

Commits
-------

9208c69b21 [HttpFoundation] Make sure we reuse the current PHP binary for the webserver process in functional tests.
2020-12-05 09:21:21 +01:00
Alexander M. Turek
9208c69b21 [HttpFoundation] Make sure we reuse the current PHP binary for the webserver process in functional tests. 2020-12-05 09:17:15 +01:00
Fabien Potencier
eb6a79203b bug #39313 [FrameworkBundle] TextDescriptor::formatControllerLink checked method… (fjogeleit)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[FrameworkBundle] TextDescriptor::formatControllerLink checked method…

…_exists method before it ensures that $controller is not null

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

Today I tried PHP8 with Symfony 5.2. - by checking my routes with
```
bin/console debug:router
```

It throws
```
 method_exists(): Argument #1 ($object_or_class) must be of type object|string, null given
```

The reason is the configured auth route for the login API defined in routes.yaml:
```
authorization::login:
  path: '/login'
```
This route has no controller configured and the value of $controller in `TextDescriptor::formatControllerLink` in the FrameworkBundle is `null`. This method has a elseif condition with `method_exists` without a check if $controller is a string or object.
In PHP8 this throws an exception/error and did not work. This PR checks that `$controller` is not null before the method_exists check to prevent this failure.

I'm not sure how to test this in the existing Testsuite

Commits
-------

67bd779ef4 [FrameworkBundle] TextDescriptor::formatControllerLink checked method…
2020-12-05 09:14:47 +01:00
Frank Jogeleit
67bd779ef4 [FrameworkBundle] TextDescriptor::formatControllerLink checked method… 2020-12-05 09:14:40 +01:00
Fabien Potencier
ac9858b0c8 minor #39318 Fix @experimental annotations (fabpot)
This PR was merged into the 5.2 branch.

Discussion
----------

Fix @experimental annotations

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

Commits
-------

07781474bc Fix @experimental annotations
2020-12-05 08:34:04 +01:00
Fabien Potencier
71591dfd38 Merge branch '5.1' into 5.2
* 5.1:
  Add missing entries in .gitattributes
  Update README.md
2020-12-05 08:33:16 +01:00
Fabien Potencier
a0e7fc36a3 Add missing entries in .gitattributes 2020-12-05 08:09:10 +01:00
Fabien Potencier
07781474bc Fix @experimental annotations 2020-12-05 07:51:44 +01:00
Fabien Potencier
1e15aa69f4 minor #39293 [HttpFoundation] Ignore stack trace printed by Xdebug 3 (derrabus)
This PR was merged into the 4.4 branch.

Discussion
----------

[HttpFoundation] Ignore stack trace printed by Xdebug 3

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

If we're running HttpFoundation's functional tests with Xdebug 3, a stack trace will be printed when a warning is emitted. This confuses our `cookie_max_age` test currently where we perform a `setcookie()` call that will emit a warning.

I have patched the corresponding fixture so the printed stack trace is ignored.

A failed test can be seen here: https://travis-ci.com/github/symfony/symfony/jobs/452077515#L11078

Commits
-------

b67baa4e7f [HttpFoundation] Ignore stack trace printed by Xdebug 3.
2020-12-05 07:41:35 +01:00
Fabien Potencier
fb2ea6f632 Fix CS 2020-12-05 07:27:59 +01:00
Fabien Potencier
1177baa770 bug #39286 [HttpClient] throw clearer error when no scheme is provided (BackEndTea)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[HttpClient] throw clearer error when no scheme is provided

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

This could be considred a BC break, as previously this would've  a `TransportExcepiton`, instead of an `InvalidArgumentException`. But i see no reason to catch this specific error, as it would generally be a configuration error.

Commits
-------

4d821d6c34 [HttpClient] throw clearer error when no scheme is provided
2020-12-05 07:03:15 +01:00
Gert de Pagter
4d821d6c34 [HttpClient] throw clearer error when no scheme is provided 2020-12-05 07:03:08 +01:00
Jan Schädlich
256b19005d Remove not used mailer_transport.xml service config 2020-12-04 21:40:37 +01:00
Alexander M. Turek
b67baa4e7f [HttpFoundation] Ignore stack trace printed by Xdebug 3. 2020-12-04 13:53:59 +01:00
Christian Flothmann
626d61ee7d bug #39267 [Yaml] fix lexing backslashes in single quoted strings (xabbuh)
This PR was merged into the 4.4 branch.

Discussion
----------

[Yaml] fix lexing backslashes in single quoted strings

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

Commits
-------

668732305a fix lexing backslashes in single quoted strings
2020-12-04 09:57:25 +01:00
tsilefy
58ef54b229 Update README.md 2020-12-03 21:59:39 +01:00
Alexander M. Turek
2b36487983 Merge branch '5.1' into 5.2
* 5.1:
  [DependencyInjection] Fixed incorrect report for private services if required service does not exist
  Remove Xdebug from php-extra runs.
2020-12-03 10:29:40 +01:00
Alexander M. Turek
2d062df845 Merge branch '4.4' into 5.1
* 4.4:
  [DependencyInjection] Fixed incorrect report for private services if required service does not exist
  Remove Xdebug from php-extra runs.
2020-12-03 10:18:36 +01:00
Alexander M. Turek
fbd67c8f85 bug #39151 [DependencyInjection] Fixed incorrect report for private services if required service does not exist (Islam93)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[DependencyInjection] Fixed incorrect report for private services if required service does not exist

…does not exist

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

looks like `CheckExceptionOnInvalidReferenceBehaviorPass` can be moved to `beforeRemovingPasses` section without any consequences. this solves the problem and all tests still pass

Commits
-------

39bd05c5bc [DependencyInjection] Fixed incorrect report for private services if required service does not exist
2020-12-03 02:30:31 +01:00
Islam Israfilov (Islam93)
39bd05c5bc [DependencyInjection] Fixed incorrect report for private services if required service does not exist 2020-12-03 02:30:23 +01:00
kick-the-bucket
8b9b62048c Remove unused @throws tags and handling of never thrown exceptions 2020-12-02 16:16:03 +01:00
Fabien Potencier
4b97b160a2 bug #39236 [Notifier] Fix slack section block (norkunas)
This PR was merged into the 5.2 branch.

Discussion
----------

[Notifier] Fix slack section block

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

In SlackSectionBlock fields array is not initialized directly in the constructor so when running tests and trying to add a field to  it throws `Undefined index: fields`.

Commits
-------

472fa3b50a Fix checking slack section fields limit
2020-12-02 12:28:51 +01:00
Chi-teck
f90f27b63a Fix rate limiter documentation 2020-12-02 09:46:43 +01:00
Alexander M. Turek
56e79395c4 Merge branch '5.1' into 5.2
* 5.1:
  Fix merge.
  fix lexing mapping values with trailing whitespaces
  [String] Fix Notice when argument is empty string
  [Inflector] Fix Notice when argument is empty string
  Fix small typos
2020-12-02 09:39:23 +01:00
Alexander M. Turek
d4100fb453 Merge branch '4.4' into 5.1
* 4.4:
  fix lexing mapping values with trailing whitespaces
2020-12-01 21:33:29 +01:00
Alexander M. Turek
6f7e4dd8dc Fix merge. 2020-12-01 21:15:15 +01:00
Alexander M. Turek
7882c4a0b1 bug #39274 [Yaml] fix lexing mapping values with trailing whitespaces (xabbuh)
This PR was merged into the 4.4 branch.

Discussion
----------

[Yaml] fix lexing mapping values with trailing whitespaces

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix https://github.com/symfony/symfony/issues/39265#issuecomment-736552123
| License       | MIT
| Doc PR        |

Commits
-------

5e455f321a fix lexing mapping values with trailing whitespaces
2020-12-01 21:08:57 +01:00
Grégoire Pineau
d899f5de54 bug #39256 [Workflow] Fixed case when the marking store is not defined (lyrixx)
This PR was merged into the 5.2 branch.

Discussion
----------

[Workflow] Fixed case when the marking store is not defined

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

---

Since we are using `abstract_arg()` in the [service definition](https://github.com/symfony/symfony/blob/v5.2.0/src/Symfony/Bundle/FrameworkBundle/Resources/config/workflow.php#L25) (where we used `null` before), and since there is a validation mechanism that ensure all abstract arg are resolved, the container compilation failed.
But if the marking store is not defined (which is legit), we want to fallback on the raw PHP implementation.
That's why, now, I replace the abstract arg by null, and everything seems OK

Commits
-------

bd38cceaa8 [Workflow] Fixed case when the marking store is not defined
2020-12-01 19:56:33 +01:00
Alexander M. Turek
88cbcf99c0 bug #39244 [String] Fix Notice when argument is empty string (moldman)
This PR was merged into the 5.1 branch.

Discussion
----------

[String] Fix Notice when argument is empty string

| Q             | A
| ------------- | ---
| Branch?       | 5.1 <!-- see below -->
| Bug fix?      | yes
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| License       | MIT

PHP Notice is generated when we pass empty string to `singularize` or `pluralize` method.
```
$inflector = new \Symfony\Component\String\Inflector\EnglishInflector();
$inflector->singularize('');
```
```
Notice: Uninitialized string offset: 0 in vendor/symfony/string/Inflector/EnglishInflector.php on line 344
PHP Notice:  Uninitialized string offset: 0 in vendor/symfony/string/Inflector/EnglishInflector.php on line 344
```
```
$inflector = new \Symfony\Component\String\Inflector\EnglishInflector();
$inflector->pluralize('');
```
```
Notice: Uninitialized string offset: 0 in vendor/symfony/string/Inflector/EnglishInflector.php on line 424
PHP Notice:  Uninitialized string offset: 0 in vendor/symfony/string/Inflector/EnglishInflector.php on line 424
```

**Background**:
When `\Symfony\Component\PropertyAccess\PropertyAccessorInterface::setValue` is used with `_` property, then it calls \Symfony\Component\String\Inflector\EnglishInflector::singularize with empty string.
```
class Check
{
    public $_;
}
$check = new Check();
$pr = PropertyAccess::createPropertyAccessorBuilder()
    ->getPropertyAccessor();
if($pr->isWritable($check, '_')){
    $pr->setValue($check, '_', 'test');
}
var_dump($check);
```
```
Notice: Uninitialized string offset: 0 in vendor/symfony/string/Inflector/EnglishInflector.php on line 344
PHP Notice:  Uninitialized string offset: 0 in vendor/symfony/string/Inflector/EnglishInflector.php on line 344
...
Notice: Uninitialized string offset: 0 in vendor/symfony/string/Inflector/EnglishInflector.php on line 344
PHP Notice:  Uninitialized string offset: 0 in vendor/symfony/string/Inflector/EnglishInflector.php on line 344

Notice: Uninitialized string offset: 0 in vendor/symfony/string/Inflector/EnglishInflector.php on line 344
object(Check)#6 (1) {
  ["_"]=>
  string(4) "test"
}
```

P.S.
Another solution is to include empty string in \Symfony\Component\String\Inflector\EnglishInflector::$uninflected
```
    private static $uninflected = [
        '',
        'atad',
        'reed',
        'kcabdeef',
        'hsif',
        'ofni',
        'esoom',
        'seires',
        'peehs',
        'seiceps',
    ];
```

If this PR is not relevant please close and sorry for inconvenience.

Commits
-------

88c2b9be62 [String] Fix Notice when argument is empty string
2020-12-01 18:07:21 +01:00
Alexander M. Turek
f7c372e636 Merge branch '4.4' into 5.1
* 4.4:
  [Inflector] Fix Notice when argument is empty string
2020-12-01 18:05:45 +01:00
Alexander M. Turek
782ee5d1d3 bug #39270 [Inflector] Fix Notice when argument is empty string (moldman)
This PR was merged into the 4.4 branch.

Discussion
----------

[Inflector] Fix Notice when argument is empty string

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| License       | MIT

Fixing issue when we call `Inflector` with empty string:

```
\Symfony\Component\Inflector\Inflector::singularize('');
```
```
Notice: Uninitialized string offset: 0 in src/Symfony/Component/Inflector/Inflector.php on line 363
PHP Notice:  Uninitialized string offset: 0 in src/Symfony/Component/Inflector/Inflector.php on line 363
...
Notice: Uninitialized string offset: 0 in src/Symfony/Component/Inflector/Inflector.php on line 363
PHP Notice:  Uninitialized string offset: 0 in src/Symfony/Component/Inflector/Inflector.php on line 363
```

Fix for 5.1 https://github.com/symfony/symfony/pull/39244

Commits
-------

2dfe342452 [Inflector] Fix Notice when argument is empty string
2020-12-01 18:03:27 +01:00
Christian Flothmann
5e455f321a fix lexing mapping values with trailing whitespaces 2020-12-01 17:24:09 +01:00
moldman
88c2b9be62 [String] Fix Notice when argument is empty string 2020-12-01 17:34:07 +02:00
moldman
2dfe342452 [Inflector] Fix Notice when argument is empty string 2020-12-01 17:29:30 +02:00
Christian Flothmann
668732305a fix lexing backslashes in single quoted strings 2020-12-01 15:29:09 +01:00
Romaric Drigon
0222ed3a32 [Security] fix #39262, more defensive PasswordMigratingListener 2020-12-01 12:09:46 +01:00
Grégoire Pineau
bd38cceaa8 [Workflow] Fixed case when the marking store is not defined 2020-12-01 10:12:38 +01:00
Romaric Drigon
c3778050bd [Security] fix #39249, default entry_point compiler pass was returning too early 2020-12-01 09:51:35 +01:00
Jérémy Benoist
529bbaf0a9
Fix small typos 2020-12-01 09:40:05 +01:00
Alexander M. Turek
0d9dd43ecc Merge branch '5.1' into 5.2
* 5.1:
  remove return type definition in order to avoid type juggling
2020-11-30 23:47:11 +01:00
Alexander M. Turek
e4f1b5be56 Merge branch '4.4' into 5.1
* 4.4:
  remove return type definition in order to avoid type juggling
2020-11-30 23:46:30 +01:00
Alexander M. Turek
e26893b122 [DependencyInjection] Fix container linter for union types. 2020-11-30 22:45:46 +01:00
Alexander M. Turek
0b8d634706 Merge branch '5.1' into 5.2
* 5.1:
  Added additional file existence check on temporary file cleanup for dumpFile method
  fix lexing inline sequences/mappings with trailing whitespaces
  Added test for issue 39229
  [Console] Enable hyperlinks in Konsole/Yakuake
2020-11-30 18:15:52 +01:00
Tomas
472fa3b50a Fix checking slack section fields limit 2020-11-30 19:08:19 +02:00
Bernard van der Esch
668431fc09 remove return type definition in order to avoid type juggling 2020-11-30 18:07:19 +01:00
Alexander M. Turek
8bced673cc Merge branch '4.4' into 5.1
* 4.4:
  Added additional file existence check on temporary file cleanup for dumpFile method
  fix lexing inline sequences/mappings with trailing whitespaces
  Added test for issue 39229
  [Console] Enable hyperlinks in Konsole/Yakuake
2020-11-30 18:05:38 +01:00
Robin Chalas
da65c57fb4 bug #39223 [Console] Re-enable hyperlinks in Konsole/Yakuake (OndraM)
This PR was merged into the 4.4 branch.

Discussion
----------

[Console] Re-enable hyperlinks in Konsole/Yakuake

| Q             | A
| ------------- | ---
| Branch?       | 4.4 <!-- see below -->
| Bug fix?      | yes
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | Fix #31809 <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License       | MIT

Hyperlinks feature was broken in KDE's Konsole/Yakuake (#31809) and thus disabled by #31849.

But the feature has been recently [implemented](https://invent.kde.org/utilities/konsole/-/merge_requests/138), and is about to be released in KDE 20.12 on December 10th 2020, see [release notes](https://community.kde.org/Releases/20.12_Release_Notes#Konsole).

![obrazek](https://user-images.githubusercontent.com/793041/100556284-92dccf00-32a1-11eb-9907-f65c2eaa1335.png)

Tested in RC version and seems to be working fine. The feature is disabled by default (as per security concerns), but even when disabled, it just gracefully don't show the links.

Commits
-------

728edf36bf [Console] Enable hyperlinks in Konsole/Yakuake
2020-11-30 17:35:14 +01:00
Alexander M. Turek
f9e93342df bug #39241 [Yaml] fix lexing inline sequences/mappings with trailing whitespaces (Nyholm, xabbuh)
This PR was merged into the 4.4 branch.

Discussion
----------

[Yaml] fix lexing inline sequences/mappings with trailing whitespaces

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

Commits
-------

66bc898f61 fix lexing inline sequences/mappings with trailing whitespaces
b562a54e53 Added test for issue 39229
2020-11-30 17:34:03 +01:00
gechetspr
520a10c221 Added additional file existence check on temporary file cleanup for dumpFile method 2020-11-30 15:04:35 +02:00
Christian Flothmann
66bc898f61 fix lexing inline sequences/mappings with trailing whitespaces 2020-11-30 13:49:14 +01:00
Nyholm
b562a54e53
Added test for issue 39229 2020-11-30 13:01:48 +01:00
Thomas Calvet
41158b8878 [PhpUnitBridge] Fix disabling DeprecationErrorHandler from phpunit configuration file 2020-11-30 09:16:37 +01:00
Fabien Potencier
6440b70b31 Bump Symfony version to 5.2.1 2020-11-30 06:59:51 +01:00
Fabien Potencier
25acc0b5df Update VERSION for 5.2.0 2020-11-30 06:54:18 +01:00
Fabien Potencier
ffd365bb5e feature #39213 [Security] [DX] Automatically add PasswordUpgradeBadge + default support() impl in AbstractFormLoginAuthenticator (wouterj)
This PR was squashed before being merged into the 5.2 branch.

Discussion
----------

[Security] [DX] Automatically add PasswordUpgradeBadge + default support() impl in AbstractFormLoginAuthenticator

| Q             | A
| ------------- | ---
| Branch?       | 5.2 (hopefully? sorry to keep pushing the barrier here)
| Bug fix?      | no
| New feature?  | yes (sort of)
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | -

These are 2 suggestions we found while implementing `make:auth` for the new system (https://github.com/symfony/maker-bundle/pull/736):

Impact on a custom login form authenticator ([as generated by the new maker](https://github.com/symfony/maker-bundle/pull/736/files#diff-528164b6c24778d5e81fa3819b0552f0e68a9fea33c7d3446a012f3da7d0af60)):

* **Automatically add `PasswordUpgradeBadge`** if there is a user password with valid password credentials.
   ```diff
    // ...
    return new Passport(
        new UserBadge($userIdentifier),
        new PasswordCredentials($password),
        [
   -        new PasswordUpgradeBadge($password),
            new CsrfTokenBadge('authenticate', $csrf),
        ]
    )
   ```
   Note that this does not automatically migrate all passwords: it still relies on `PasswordUpgraderInterface` to be implemented on the user loader/provider.
* **Add default implementation of `AbstractFormLoginAuthenticator::support()`**
   ```diff
   - public function supports(Request $request): ?bool
   -  {
   -      return self::LOGIN_ROUTE === $request->attributes->get('_route')
   -          && $request->isMethod('POST');
   - }
   ```

cc @weaverryan @jrushlow

Commits
-------

27450c0bb4 [Security] [DX] Automatically add PasswordUpgradeBadge + default support() impl in AbstractFormLoginAuthenticator
2020-11-30 06:47:07 +01:00
Wouter de Jong
27450c0bb4 [Security] [DX] Automatically add PasswordUpgradeBadge + default support() impl in AbstractFormLoginAuthenticator 2020-11-30 06:46:27 +01:00
Ondřej Machulda
728edf36bf
[Console] Enable hyperlinks in Konsole/Yakuake 2020-11-30 00:58:52 +01:00
Martin Auswöger
8d368e1fe3 Fix bug with whitespace in Kernel::stripComments() 2020-11-29 22:29:34 +01:00
Fabien Potencier
d4ccae9b31 Bump Symfony version to 5.1.10 2020-11-29 10:31:15 +01:00
Fabien Potencier
a2efa61d2d Update VERSION for 5.1.9 2020-11-29 10:27:52 +01:00
Fabien Potencier
aa5ec20a0c Bump Symfony version to 4.4.18 2020-11-29 10:27:10 +01:00
Fabien Potencier
09df32693a Update VERSION for 4.4.17 2020-11-29 10:23:08 +01:00
Alexander M. Turek
d620f91025 Merge branch '5.1' into 5.2
* 5.1:
  [Messenger] Fix mssql compatibility for doctrine transport.
2020-11-29 00:28:16 +01:00
Alexander M. Turek
9ff1436a90 Merge branch '4.4' into 5.1
* 4.4:
  [Messenger] Fix mssql compatibility for doctrine transport.
2020-11-29 00:22:02 +01:00