Commit Graph

41531 Commits

Author SHA1 Message Date
Christian Flothmann
995245808f fix PHP 8 compatibility 2021-01-08 08:48:14 +01:00
Nicolas Grekas
054e00c952 Merge branch '4.4' into 5.1
* 4.4:
  [DependencyInjection] Support PHP 8 builtin types in CheckTypeDeclarationsPass
  [DependencyInjection] Fix InvalidParameterTypeException for function parameters
  [VarDumper] fix mutating $GLOBALS while cloning it
2021-01-07 15:52:02 +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
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
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
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
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
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
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
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
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
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
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
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
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
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
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