Commit Graph

49150 Commits

Author SHA1 Message Date
Nicolas Grekas e705a66a7f fix tests (quater) 2021-06-07 18:35:43 +02:00
Nicolas Grekas a1f376b276 bump ext-mongodb 2021-06-07 17:05:04 +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
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
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 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
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 d7524e6842 bug #41386 [Console] Escape synopsis output (jschaedl)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[Console] Escape synopsis output

| 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 #41315 <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License       | MIT
| Doc PR        | symfony/symfony-docs#... <!-- required for new features -->

Commits
-------

960cb520df [Console] Escape synopsis output
2021-06-03 13:51:23 +02:00
Jan Schädlich 960cb520df [Console] Escape synopsis output 2021-06-03 13:51:17 +02:00
Nicolas Grekas f143c8fd1a minor #41453 [Form] Document null support in NumberToLocalizedStringTransformer (mbabker)
This PR was merged into the 4.4 branch.

Discussion
----------

[Form] Document null support in NumberToLocalizedStringTransformer

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

`Symfony\Component\Form\Extension\Core\DataTransformer\NumberToLocalizedStringTransformer` explicitly checks for and returns nulls but these aren't documented in the class' doc blocks, which causes static analysis tools to report a false positive when checking for these null values elsewhere.  This adds the missing null types to the doc blocks.

Commits
-------

1fda3d0284 Document null support in NumberToLocalizedStringTransformer
2021-06-03 13:48:34 +02:00
Alexander M. Turek b439213767 bug #41495 [HttpFoundation] Add ReturnTypeWillChange to SessionHandlers (nikic)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[HttpFoundation] Add ReturnTypeWillChange to SessionHandlers

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | maybe?
| Tickets       |
| 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
-->

This adds `#[ReturnTypeWillChange]` annotations for `SessionHandler` methods to satisfy the [Tentative Return Types RFC](https://wiki.php.net/rfc/internal_method_return_types). This doesn't cover all classes (e.g. `MockPdo` is also affected), just the ones relating to `SessionHandler` etc.

It's worth noting that the `gc()` method is spec'd as `int|false` on our side, so I've updated type hints accordingly. The method used to return bool prior to PHP 7.1.

Commits
-------

8954b4f922 [HttpFoundation] Add ReturnTypeWillChange to SessionHandlers
2021-06-01 21:14:33 +02:00
Nikita Popov 8954b4f922 [HttpFoundation] Add ReturnTypeWillChange to SessionHandlers 2021-06-01 21:14:25 +02:00
Fabien Potencier ca61cd64b1 Bump Symfony version to 4.4.26 2021-06-01 11:02:47 +02:00
Fabien Potencier c71e9ba222
Merge pull request #41477 from fabpot/release-4.4.25
released v4.4.25
2021-06-01 09:12:23 +02:00
Fabien Potencier da21ba31cf Update VERSION for 4.4.25 2021-06-01 09:12:08 +02:00
Fabien Potencier e54bddeaea Update CONTRIBUTORS for 4.4.25 2021-06-01 09:12:02 +02:00
Fabien Potencier 2213e6ad85 Update CHANGELOG for 4.4.25 2021-06-01 09:11:35 +02:00
Michael Babker 1fda3d0284
Document null support in NumberToLocalizedStringTransformer 2021-05-30 11:06:17 -05:00
Nicolas Grekas 9b89b2ec04 bug #41000 [Form] Use !isset for checks cause this doesn't falsely include 0 (Kai Dederichs)
This PR was submitted for the 5.2 branch but it was squashed and merged into the 4.4 branch instead.

Discussion
----------

[Form] Use !isset for checks cause this doesn't falsely include 0

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

By using isset 0 won't falsely included anymore

Commits
-------

cd541c5a63 [Form] Use !isset for checks cause this doesn't falsely include 0
2021-05-27 14:54:21 +02:00
Kai Dederichs cd541c5a63 [Form] Use !isset for checks cause this doesn't falsely include 0 2021-05-27 14:54:13 +02:00
Nicolas Grekas 11a88370e3 minor #41403 [Mailer] Fix typo in README (W0rma)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[Mailer] Fix typo in README

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

Commits
-------

14f2a2974c [Mailer] Fix typo in README
2021-05-27 14:49:44 +02:00
Dieter 14f2a2974c [Mailer] Fix typo in README 2021-05-27 14:49:37 +02:00
Nicolas Grekas 747e2ac886 sync ./phpunit in all branches 2021-05-27 14:44:44 +02:00
Nicolas Grekas ba5899362b minor #41418 [VarDumper] fix tests (nicolas-grekas)
This PR was submitted for the 6.0 branch but it was merged into the 4.4 branch instead.

Discussion
----------

[VarDumper] fix tests

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

Fixing VarDumper on appveyor hopefully.

Commits
-------

bdf3222c60 [VarDumper] fix tests
2021-05-27 11:48:39 +02:00
Nicolas Grekas bdf3222c60 [VarDumper] fix tests 2021-05-27 11:48:32 +02:00
Nicolas Grekas 519d348b4a bug #41407 [DependencyInjection] keep container.service_subscriber tag on the decorated definition (xabbuh)
This PR was merged into the 4.4 branch.

Discussion
----------

[DependencyInjection] keep container.service_subscriber tag on the decorated definition

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

Commits
-------

b917fafc8d keep container.service_subscriber tag on the decorated definition
2021-05-26 19:54:16 +02:00
Nicolas Grekas 42e4736e09 [PhpUnitBridge] fix PHP version check 2021-05-26 19:49:37 +02:00
Nicolas Grekas ce7d3c41ae Fix CS in README files 2021-05-26 19:39:37 +02:00