Commit Graph

53969 Commits

Author SHA1 Message Date
Nicolas Grekas
e98baf5ea6 Merge branch '4.4' into 5.2
* 4.4:
  fix tests (quinter)
2021-06-07 21:01:00 +02:00
Nicolas Grekas
a4dee4aaba minor #41594 fix tests (quinter) (nicolas-grekas)
This PR was merged into the 4.4 branch.

Discussion
----------

fix tests (quinter)

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

Commits
-------

a70b537fbc fix tests (quinter)
2021-06-07 20:58:54 +02:00
Nicolas Grekas
a70b537fbc fix tests (quinter) 2021-06-07 20:50:09 +02:00
Nicolas Grekas
ed17193926 Merge branch '4.4' into 5.2
* 4.4:
  fix tests (quater)
  bump ext-mongodb
2021-06-07 18:36:35 +02:00
Nicolas Grekas
21619fe77f minor #41591 fix tests (quater) (nicolas-grekas)
This PR was merged into the 4.4 branch.

Discussion
----------

fix tests (quater)

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

Commits
-------

e705a66a7f fix tests (quater)
2021-06-07 18:36:11 +02:00
Nicolas Grekas
e705a66a7f fix tests (quater) 2021-06-07 18:35:43 +02:00
Kien Nguyen
d3249baa06 Add missing translations for Thai 2021-06-07 22:19:59 +07:00
Nicolas Grekas
a1f376b276 bump ext-mongodb 2021-06-07 17:05:04 +02:00
Kien Nguyen
65e96dd13f Add missing translations for Swedish 2021-06-07 22:03:43 +07:00
Nicolas Grekas
dd12fe599d Merge branch '4.4' into 5.2
* 4.4:
  fix tests (ter)
  Fix tests (bis)
  [travis] fix travis hopefuly
  [Security] Fix SerializableUser fixture
  [FrameworkBundle][WebProfilerBundle] Don't pass null to string parameters
2021-06-07 16:50:44 +02:00
Nicolas Grekas
bf30aa6f97 minor #41585 fix tests (ter) (nicolas-grekas)
This PR was merged into the 4.4 branch.

Discussion
----------

fix tests (ter)

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

Commits
-------

a71fb4b8f2 fix tests (ter)
2021-06-07 16:42:00 +02:00
Nicolas Grekas
a71fb4b8f2 fix tests (ter) 2021-06-07 16:39:01 +02:00
Nicolas Grekas
ad5b25e390 minor #41581 Fix tests (bis) (nicolas-grekas)
This PR was merged into the 4.4 branch.

Discussion
----------

 Fix tests (bis)

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

Commits
-------

7341e29f2f Fix tests (bis)
2021-06-07 13:02:58 +02:00
Nicolas Grekas
7341e29f2f Fix tests (bis) 2021-06-07 12:56:07 +02:00
Nicolas Grekas
fb79727653 minor #41565 [FrameworkBundle][WebProfilerBundle] Don't pass null to string parameters (derrabus)
This PR was merged into the 4.4 branch.

Discussion
----------

[FrameworkBundle][WebProfilerBundle] Don't pass null to string parameters

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

This should fix the remaining issues from our bundle tests

Commits
-------

5af6edae62 [FrameworkBundle][WebProfilerBundle] Don't pass null to string parameters
2021-06-07 09:53:22 +02:00
Nicolas Grekas
301cc9877d minor #41570 [travis] fix travis hopefuly (nicolas-grekas)
This PR was merged into the 4.4 branch.

Discussion
----------

[travis] fix travis hopefuly

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

Commits
-------

a245efb604 [travis] fix travis hopefuly
2021-06-07 09:45:19 +02:00
Nicolas Grekas
a245efb604 [travis] fix travis hopefuly 2021-06-07 09:42:24 +02:00
Nicolas Grekas
a850da562b minor #41567 [Security] Fix SerializableUser fixture (derrabus)
This PR was merged into the 4.4 branch.

Discussion
----------

[Security] Fix SerializableUser fixture

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

That's hopefully the last `Serializable` implementation we need to fix. 😓

Commits
-------

8fbf3bb3c7 [Security] Fix SerializableUser fixture
2021-06-06 16:13:00 +02:00
Alexander M. Turek
8fbf3bb3c7 [Security] Fix SerializableUser fixture
Signed-off-by: Alexander M. Turek <me@derrabus.de>
2021-06-06 14:53:30 +02:00
Alexander M. Turek
5af6edae62 [FrameworkBundle][WebProfilerBundle] Don't pass null to string parameters
Signed-off-by: Alexander M. Turek <me@derrabus.de>
2021-06-06 14:37:28 +02:00
Alexander M. Turek
4d25c4cbab Merge branch '4.4' into 5.2
* 4.4:
  Fix incompatible implicit float-to-int conversions
  [Translation] Don't pass null to strtoupper()
  cs fix
  [DependencyInjection] Don't pass null to trim()
  Add return types to JsonSerializable implementations
  Fix Serializable deprecations triggered by token mocks
  Add missing security translations
2021-06-06 11:50:27 +02:00
Nicolas Grekas
b87de425c0 minor #41562 [Translation] Don't pass null to strtoupper() (derrabus)
This PR was merged into the 4.4 branch.

Discussion
----------

[Translation] Don't pass null to strtoupper()

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

This error popped up on 5.3, but not on 4.4. That's why I missed it when fixing the other occurrence with #41240.

Commits
-------

3c8cf9a3d4 [Translation] Don't pass null to strtoupper()
2021-06-06 11:29:15 +02:00
Nicolas Grekas
5854a820db minor #41555 Fix incompatible implicit float-to-int conversions (derrabus)
This PR was merged into the 4.4 branch.

Discussion
----------

Fix incompatible implicit float-to-int conversions

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

PHP 8.1 is picky about implicit float-to-int casts if we lose precision because of that cast. This PR should fix all cases that bubbled up in our test suite.

Commits
-------

fc7447681c Fix incompatible implicit float-to-int conversions
2021-06-06 11:16:34 +02:00
Alexander M. Turek
fc7447681c Fix incompatible implicit float-to-int conversions
Signed-off-by: Alexander M. Turek <me@derrabus.de>
2021-06-06 11:12:27 +02:00
Nicolas Grekas
6c180f271b minor #41533 [Security] Added missing translations for Croatian (hr) (HypeMC)
This PR was merged into the 4.4 branch.

Discussion
----------

[Security] Added missing translations for Croatian (hr)

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #41039
| License       | MIT
| Doc PR        | -
<!--
Replace this notice by a short README for your feature/bugfix. This will help people
understand your PR and can be used as a start for the documentation.

Additionally (see https://symfony.com/releases):
 - Always add tests and ensure they pass.
 - Never break backward compatibility (see https://symfony.com/bc).
 - Bug fixes must be submitted against the lowest maintained branch where they apply
   (lowest branches are regularly merged to upper ones so they get the fixes too.)
 - Features and deprecations must be submitted against branch 5.x.
 - Changelog entry should follow https://symfony.com/doc/current/contributing/code/conventions.html#writing-a-changelog-entry
-->

Commits
-------

0bce1f6de1 Add missing security translations
2021-06-06 11:01:56 +02:00
Nicolas Grekas
ec80d3c5ad minor #41554 Fix Serializable deprecations triggered by token mocks (derrabus)
This PR was merged into the 4.4 branch.

Discussion
----------

Fix Serializable deprecations triggered by token mocks

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

On 4.4, `TokenInterface` extends `Serializable` but does not enforce implementations to implement `__serialize()` as well. When creating a mock from this interface, PHPUnit will emit code that triggers a deprecation warning on PHP 8.1.

This PR introduces stricter versions of `TokenInterface` to work around that problem.

My goal was to keep the diff small and mergable. We can probably drop most of the changes when merging to 5.2 because the two methods have been added there.

Commits
-------

48e76fafc6 Fix Serializable deprecations triggered by token mocks
2021-06-06 10:53:27 +02:00
Alexander M. Turek
3c8cf9a3d4
[Translation] Don't pass null to strtoupper()
Signed-off-by: Alexander M. Turek <me@derrabus.de>
2021-06-06 10:51:46 +02:00
Nicolas Grekas
c127120b9e minor #41556 Add return types to JsonSerializable implementations (derrabus)
This PR was merged into the 4.4 branch.

Discussion
----------

Add return types to JsonSerializable implementations

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

PHP 8.1 will trigger a deprecation warning if we implement `JsonSerializable` without a return type. I've added return types to the two mock implementations that were affected.

Commits
-------

9246b53f7c Add return types to JsonSerializable implementations
2021-06-06 10:43:31 +02:00
Nicolas Grekas
40992f001b cs fix 2021-06-06 10:41:27 +02:00
Nicolas Grekas
fec859a3e0 minor #41557 [DependencyInjection] Don't pass null to trim() (derrabus)
This PR was merged into the 4.4 branch.

Discussion
----------

[DependencyInjection] Don't pass null to trim()

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

Commits
-------

e14dd67e85 [DependencyInjection] Don't pass null to trim()
2021-06-06 10:40:23 +02:00
Nicolas Grekas
bc43d4edf0 minor #41561 [String] Fix implicit float-to-int casts (derrabus)
This PR was merged into the 5.2 branch.

Discussion
----------

[String] Fix implicit float-to-int casts

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

`str_repeat()` expects an integer, but the result of the division might be a float. PHP 8.1 will complain here, so I'm using an integer division instead.

Commits
-------

448a017fd1 [String] Fix implicit float-to-int casts
2021-06-06 10:37:02 +02:00
Alexander M. Turek
448a017fd1 [String] Fix implicit float-to-int casts
Signed-off-by: Alexander M. Turek <me@derrabus.de>
2021-06-06 10:17:47 +02:00
Alexander M. Turek
e14dd67e85
[DependencyInjection] Don't pass null to trim() 2021-06-06 00:55:44 +02:00
Alexander M. Turek
9246b53f7c
Add return types to JsonSerializable implementations 2021-06-05 22:22:57 +02:00
Alexander M. Turek
48e76fafc6 Fix Serializable deprecations triggered by token mocks 2021-06-05 18:29:25 +02:00
HypeMC
0bce1f6de1 Add missing security translations 2021-06-05 14:19:20 +02:00
Nicolas Grekas
475ddaf617 minor #41550 [Messenger] Fix opcache preload with alias classes - for 5.2 (jderusse)
This PR was merged into the 5.2 branch.

Discussion
----------

[Messenger] Fix opcache preload with alias classes - for 5.2

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

Same fix than #41549 for 5.2 branch

Commits
-------

3bd24c5e07 [Messenger] Fix opcache preload with alias classes
2021-06-05 10:57:45 +02:00
Nicolas Grekas
3d6b45ecf0 Merge branch '4.4' into 5.2
* 4.4:
  Fix opcache preload with alias classes
2021-06-05 10:56:57 +02:00
Nicolas Grekas
6eead347b0 bug #41549 [Security] Fix opcache preload with alias classes (jderusse)
This PR was merged into the 4.4 branch.

Discussion
----------

[Security] Fix opcache preload with alias classes

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

Commits
-------

b10b6951a6 Fix opcache preload with alias classes
2021-06-05 10:56:13 +02:00
Alexander M. Turek
bb26053a57 Merge branch '4.4' into 5.2
* 4.4:
  [Serializer] Do not allow to denormalize string with spaces only to valid a DateTime object
2021-06-05 10:14:11 +02:00
Jérémy Derussé
3bd24c5e07
[Messenger] Fix opcache preload with alias classes 2021-06-05 00:34:10 +02:00
Jérémy Derussé
b10b6951a6
Fix opcache preload with alias classes 2021-06-05 00:24:11 +02:00
Nicolas Grekas
3524cf28ac bug #41491 [Serializer] Do not allow to denormalize string with spaces only to valid a DateTime object (sidz)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[Serializer] Do not allow to denormalize string with spaces only to valid a DateTime object

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

This PR fixes an issue when `$data` variable contains only spaces. In this case DateTimeNormalizer creates a DateTime object.

Commits
-------

21c0829a25 [Serializer] Do not allow to denormalize string with spaces only to valid a DateTime object
2021-06-04 13:50:59 +02:00
Oleg Zhulnev
21c0829a25 [Serializer] Do not allow to denormalize string with spaces only to valid a DateTime object 2021-06-04 13:50:56 +02:00
Nicolas Grekas
5e609da601 Fix KernelBrowser 2021-06-03 15:58:19 +02:00
Nicolas Grekas
b004f3bf3b fix 2021-06-03 15:41:38 +02:00
Nicolas Grekas
c2f449275b bug #41218 [DependencyInjection] Update loader’s directory when calling ContainerConfigurator::withPath (MatTheCat)
This PR was merged into the 5.2 branch.

Discussion
----------

[DependencyInjection] Update loader’s directory when calling ContainerConfigurator::withPath

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

Commits
-------

e973541baf Update loader’s directory when calling ContainerConfigurator::withPath
2021-06-03 15:19:26 +02:00
Nicolas Grekas
26a646896d bug #41505 [FrameworkBundle] fix KernelBrowser::loginUser with a stateless firewall (dunglas)
This PR was merged into the 5.2 branch.

Discussion
----------

[FrameworkBundle] fix KernelBrowser::loginUser with a stateless firewall

| 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       | n/a
| License       | MIT
| Doc PR        | todo?

Currently, `KernelBrowser::loginUser()` doesn't work with stateless firewalls (Basic HTTP, JWT etc) and fails if the session is disabled (which is frequent when creating web APIs, and when using stateless firewalls). This PR fixes the problem.

Commits
-------

2bfe6f25a8 [FrameworkBundle] fix KernelBrowser::loginUser with a stateless firewall
2021-06-03 14:03:23 +02:00
Nicolas Grekas
1ec9a83886 bug #41509 [SecurityBundle] Link UserProviderListener to correct firewall dispatcher (Matth--)
This PR was merged into the 5.2 branch.

Discussion
----------

[SecurityBundle] Link UserProviderListener to correct firewall dispatcher

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

When using the new AuthenticationManager, an incorrect UserProvider could be attached to the UserBadge when having multiple providers defined in `security.yaml`.

The `UserProviderListener` was tagged to the global event dispatcher instead of the dispatcher for the specific firewall.

Commits
-------

46bdeb8507 [SecurityBundle] Link UserProviderListener to correct firewall dispatcher
2021-06-03 14:02:21 +02:00
Nicolas Grekas
4e0edbae7c Merge branch '4.4' into 5.2
* 4.4:
  [Console] Escape synopsis output
  Document null support in NumberToLocalizedStringTransformer
2021-06-03 14:00:06 +02:00