Commit Graph

53106 Commits

Author SHA1 Message Date
Nicolas Grekas
07c6c43ee2 minor #39736 [Notifier] Use abstract test cases in 5.2 (OskarStark)
This PR was squashed before being merged into the 5.2 branch.

Discussion
----------

[Notifier] Use abstract test cases in 5.2

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

Same as #39495, but for `5.2`

cc @derrabus

Commits
-------

8f6b08c131 [Notifier] Use abstract test cases in 5.2
2021-01-07 15:39:16 +01:00
Oskar Stark
8f6b08c131 [Notifier] Use abstract test cases in 5.2 2021-01-07 15:39:10 +01:00
Nicolas Grekas
cd1067bbae minor #39739 [Notifier] Cleanup changelog (5.1) (OskarStark)
This PR was merged into the 5.1 branch.

Discussion
----------

[Notifier] Cleanup changelog (5.1)

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

New bridges are not mentioned in the changelog file of Notifier itself, but in the CHANGELOG of the bridge.

Commits
-------

6bfcaa7ede [Notifier] Cleanup changelog (5.1)
2021-01-07 15:36:54 +01:00
Nicolas Grekas
18002e26b9 minor #39740 [Notifier] Cleanup changelog (5.2) (OskarStark)
This PR was merged into the 5.2 branch.

Discussion
----------

[Notifier] Cleanup changelog (5.2)

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

New bridges are not mentioned in the changelog file of Notifier itself, but in the CHANGELOG of the bridge.

Same as #39739 but for `5.2`

Commits
-------

be5a541325 [Notifier] Cleanup changelog (5.2)
2021-01-07 15:36:27 +01:00
Nicolas Grekas
3ee310f20a bug #39747 [DependencyInjection] Support PHP 8 builtin types in CheckTypeDeclarationsPass (derrabus)
This PR was merged into the 4.4 branch.

Discussion
----------

[DependencyInjection] Support PHP 8 builtin types in CheckTypeDeclarationsPass

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

`CheckTypeDeclarationsPass` currently explodes if it encounters one of following the new builtin types of PHP 8:

* `false` (can only appear as part of a union)
* `mixed` (we don't need to check anything)

In either case, the pass will try to call a method `is_false()`/`is_mixed()` and fail.

This PR should fix both cases.

Commits
-------

f16230be5d [DependencyInjection] Support PHP 8 builtin types in CheckTypeDeclarationsPass
2021-01-07 15:35:02 +01:00
Nicolas Grekas
467d8d260f minor #39751 [FrameworkBundle] Rename parameter of magic method configureContainer (pavol-tk)
This PR was submitted for the 5.x branch but it was merged into the 5.1 branch instead.

Discussion
----------

[FrameworkBundle] Rename parameter of magic method configureContainer

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

Default application Kernel has `configureContainer` method defined with `$container` as first parameter. PhpStorm inspection said:
```
Parameter's name changed during inheritance
Parameter's name changed from 'c' to 'container'
```

Commits
-------

e4598c2b4f Rename parameter of @method configureContainer
2021-01-07 15:24:09 +01:00
Pavol Tuka
e4598c2b4f Rename parameter of @method configureContainer
Default application Kernel has `configureContainer` method defined with `$container` as first parameter. PhpStorm inspection said: 
```
Parameter's name changed during inheritance
Parameter's name changed from 'c' to 'container'
```
2021-01-07 15:24:01 +01:00
Nicolas Grekas
d223a5ed40 bug #39738 [VarDumper] fix mutating $GLOBALS while cloning it (nicolas-grekas)
This PR was merged into the 4.4 branch.

Discussion
----------

[VarDumper] fix mutating $GLOBALS while cloning it

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

Also preparing for https://wiki.php.net/rfc/restrict_globals_usage

Commits
-------

384b0adf38 [VarDumper] fix mutating $GLOBALS while cloning it
2021-01-07 14:07:47 +01:00
Nicolas Grekas
a147705757 bug #39746 [DependencyInjection] Fix InvalidParameterTypeException for function parameters (derrabus)
This PR was merged into the 4.4 branch.

Discussion
----------

[DependencyInjection] Fix InvalidParameterTypeException for function parameters

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

Commits
-------

185454367a [DependencyInjection] Fix InvalidParameterTypeException for function parameters
2021-01-07 11:02:55 +01:00
Alexander M. Turek
d7c4433bee minor #39741 [Notifier] Add missing space in changelog (5.3) (OskarStark)
This PR was merged into the 5.3-dev branch.

Discussion
----------

[Notifier] Add missing space in changelog (5.3)

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

Add missing space

Commits
-------

3f1989d97b [Notifier] Add missing space in changelog (5.3)
2021-01-07 03:19:15 +01:00
Alexander M. Turek
f16230be5d [DependencyInjection] Support PHP 8 builtin types in CheckTypeDeclarationsPass 2021-01-07 03:15:41 +01:00
Alexander M. Turek
185454367a [DependencyInjection] Fix InvalidParameterTypeException for function parameters 2021-01-07 02:09:26 +01:00
Jérémy Derussé
1cfc763018
Fix missing BCC recipients in SES bridge 2021-01-07 01:57:48 +01:00
Alexander M. Turek
8bf1669e82 Merge branch '5.2' into 5.x
* 5.2:
  Fix bitnami env PATH
  [Serializer] Drop extra space
  [Notifier] Add tests for SlackOptions
2021-01-07 01:38:58 +01:00
Alexander M. Turek
f6c10232c5 Merge branch '5.1' into 5.2
* 5.1:
  Fix bitnami env PATH
  [Notifier] Add tests for SlackOptions
2021-01-07 01:32:24 +01:00
Alexander M. Turek
7f3044aa5d Merge branch '4.4' into 5.1
* 4.4:
  Fix bitnami env PATH
2021-01-07 01:31:53 +01:00
Alexander M. Turek
92ccb0a9df minor #39745 Fix CI: Use full path to binaries in dockerized steps (jderusse)
This PR was merged into the 4.4 branch.

Discussion
----------

Fix CI: Use full path to binaries in dockerized steps

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

~4 hours ago Github automatically adds the `PATH` env variable into docker steps.
Which is an issue for the openldap, because the image stores the binaries in a vendor-prefixed folder.

This PR use full path to binaries instead of relying on PATH

Commits
-------

9a3fc5a967 Fix bitnami env PATH
2021-01-07 01:31:17 +01:00
Jérémy Derussé
9a3fc5a967
Fix bitnami env PATH 2021-01-07 00:54:10 +01:00
Alexander M. Turek
f2beda8a53 minor #39742 [Serializer] Drop extra space (DavidPrevot)
This PR was merged into the 5.2 branch.

Discussion
----------

[Serializer] Drop extra space

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

This extra space prevents phpab to prepare a static autoloader due to a parse error:
```
$ phpab src/Symfony/Component/Serializer/Mapping/Loader/AnnotationLoader.php
phpab %development% - Copyright (C) 2009 - 2021 by Arne Blankerts and Contributors

Scanning file src/Symfony/Component/Serializer/Mapping/Loader/AnnotationLoader.php
Could not process file '/home/taffit/Debian/symfony/src/Symfony/Component/Serializer/Mapping/Loader/AnnotationLoader.php' due to parse errors: Parse error while trying to process class definition (unexpected token "T_DOUBLE_ARROW" in name).
```

Commits
-------

ff05e84553 [Serializer] Drop extra space
2021-01-06 22:59:44 +01:00
David Prévot
ff05e84553
[Serializer] Drop extra space 2021-01-06 17:15:40 -04:00
Oskar Stark
3f1989d97b [Notifier] Add missing space in changelog (5.3) 2021-01-06 20:43:00 +01:00
Oskar Stark
be5a541325 [Notifier] Cleanup changelog (5.2) 2021-01-06 20:40:35 +01:00
Oskar Stark
6bfcaa7ede [Notifier] Cleanup changelog (5.1) 2021-01-06 20:38:33 +01:00
Nicolas Grekas
384b0adf38 [VarDumper] fix mutating $GLOBALS while cloning it 2021-01-06 15:16:24 +01:00
Fabien Potencier
fe91b862c5 feature #39457 [Notifier] [DX] Dsn::getRequiredOption() (OskarStark)
This PR was squashed before being merged into the 5.3-dev branch.

Discussion
----------

[Notifier] [DX] Dsn::getRequiredOption()

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

### Todo
* [x] use the new method in all available bridges and bump composer.json files to `notifer:5.3`
* [x] add tests

This will lead to a much cleaner "communication" between the factory and the transport which option is required and which is optional. This method will also reduce the code duplication in the bridges.

IMHO we should add more of those convenient "helpers" to lower the burden for new bridges.

Commits
-------

3f095bf419 [Notifier] [DX] Dsn::getRequiredOption()
2021-01-06 13:35:38 +01:00
Oskar Stark
3f095bf419 [Notifier] [DX] Dsn::getRequiredOption() 2021-01-06 13:35:31 +01:00
Vincent Langlet
7e6eee2789 Rename normalize param 2021-01-06 12:56:58 +01:00
Fabien Potencier
7d904729b3 minor #39609 [Notifier] Add tests for SlackOptions (OskarStark)
This PR was squashed before being merged into the 5.1 branch.

Discussion
----------

[Notifier] Add tests for SlackOptions

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

Commits
-------

dcaee9970b [Notifier] Add tests for SlackOptions
2021-01-06 10:28:14 +01:00
Oskar Stark
dcaee9970b [Notifier] Add tests for SlackOptions 2021-01-06 10:28:07 +01:00
Thomas Calvet
6b88e6f662 [Serializer][UidNormalizer] Add normalization formats 2021-01-06 09:25:33 +01:00
Fabien Potencier
9e47d90019 minor #39731 fix code style (xabbuh)
This PR was merged into the 5.3-dev branch.

Discussion
----------

fix code style

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

Commits
-------

70ab0848ba fix code style
2021-01-06 06:25:03 +01:00
Christian Flothmann
70ab0848ba fix code style 2021-01-05 21:16:44 +01:00
Christian Flothmann
a7600370fa Merge branch '5.2' into 5.x
* 5.2:
  fix code style
  [Uid] Hardcode UuidV3 & UuidV5 TYPE conditional constants
  [Uid] Use the Uuid constructor when reconstructing an Ulid from its RFC-4122 version
  stop using void in test files
  parse cookie values containing the equal sign
  make some time dependent tests more resilient
  fix code style
  Remove full head content in HTML to text converter
  do not break when loading schemas from network paths on Windows
  apply the sort callback on the whole search result
2021-01-05 20:51:30 +01:00
Christian Flothmann
d3739d4482 Merge branch '5.1' into 5.2
* 5.1:
  parse cookie values containing the equal sign
  make some time dependent tests more resilient
  do not break when loading schemas from network paths on Windows
2021-01-05 20:50:41 +01:00
Christian Flothmann
cd1361b059 Merge branch '4.4' into 5.1
* 4.4:
  parse cookie values containing the equal sign
  make some time dependent tests more resilient
  do not break when loading schemas from network paths on Windows
2021-01-05 20:49:26 +01:00
Christian Flothmann
af13843668 minor #39727 fix code style (xabbuh)
This PR was merged into the 5.2 branch.

Discussion
----------

fix code style

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

Commits
-------

0fdf59c26d fix code style
2021-01-05 20:48:34 +01:00
Christian Flothmann
0fdf59c26d fix code style 2021-01-05 20:37:17 +01:00
Christian Flothmann
bc20e633f3 Merge branch '5.1' into 5.2
* 5.1:
  [Uid] Hardcode UuidV3 & UuidV5 TYPE conditional constants
  [Uid] Use the Uuid constructor when reconstructing an Ulid from its RFC-4122 version
  stop using void in test files
2021-01-05 20:21:40 +01:00
Nicolas Grekas
80bde1e27c feature #39098 [PhpUnitBridge] Add log file option for deprecations (michaelKaefer)
This PR was merged into the 5.3-dev branch.

Discussion
----------

[PhpUnitBridge] Add log file option for deprecations

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

Commits
-------

3ed22bea69 [PhpUnitBridge] Add log file option for deprecations
2021-01-05 20:06:00 +01:00
Michael Käfer
3ed22bea69 [PhpUnitBridge] Add log file option for deprecations 2021-01-05 20:05:31 +01:00
Nicolas Grekas
9b719ab13d minor #39720 make some time dependent tests more resilient (xabbuh)
This PR was merged into the 4.4 branch.

Discussion
----------

make some time dependent tests more resilient

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

Commits
-------

a33850e838 make some time dependent tests more resilient
2021-01-05 19:32:49 +01:00
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
Nicolas Grekas
6a953f4927 minor #39730 [Uid] Inline UuidV*::TYPE constants (fancyweb)
This PR was merged into the 5.1 branch.

Discussion
----------

[Uid] Inline UuidV*::TYPE constants

| 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

If we hardcode those values in the polyfill, we can surely hardcode them here? In my case, I have tested that `uuid_type` actually returns `3` even if the `\UUID_TYPE_MD5` constant is undefined 🤷‍♂️

Commits
-------

f0fafec019 [Uid] Hardcode UuidV3 & UuidV5 TYPE conditional constants
2021-01-05 19:30:20 +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
eb74e5e94d bug #39681 [HttpFoundation] parse cookie values containing the equal sign (xabbuh)
This PR was merged into the 4.4 branch.

Discussion
----------

[HttpFoundation] parse cookie values containing the equal sign

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

Commits
-------

29d2da572e parse cookie values containing the equal sign
2021-01-05 17:31:26 +01:00
Christian Flothmann
8f9f370f07 stop using void in test files 2021-01-05 16:52:51 +01:00
Christian Flothmann
c97d850224 minor #39721 [Lock] Fix CI (jderusse)
This PR was merged into the 5.3-dev branch.

Discussion
----------

[Lock] Fix CI

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

Commits
-------

e74a7f2004 Fix CI
2021-01-05 16:44:03 +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