Commit Graph

49127 Commits

Author SHA1 Message Date
Fabien Potencier
9f52228d86 minor #36972 [WebProfilerBundle] changed label of memory usage in time panel (Mb into MiB) (Lozik)
This PR was merged into the 4.4 branch.

Discussion
----------

[WebProfilerBundle] changed label of memory usage in time panel (Mb into MiB)

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

This PR fixes the memory usage labels in the time panel of the web profiler for 4.4+. PR #36571 already fixed this for 3.4 but since the time panel has been rewritten in 4.3, that minor fix has not correctly been transferred into 4.4+.

Commits
-------

a91204a79d [WebProfilerBundle] changed label of memory usage in time panel (Mb into MiB)
2020-05-26 18:21:35 +02:00
Robin Chalas
ce61bb0750 bug #36974 [Security] Fixed handling of CSRF logout error (wouterj)
This PR was merged into the 3.4 branch.

Discussion
----------

[Security] Fixed handling of CSRF logout error

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

8 years ago, a typo was made while refactoring the `ExceptionListener`, loosing this logic (46071f3238). I think we should fix it.

The `LogoutException` is a very generic name for something only used when the CSRF token is invalid. Should we match the exception message to make sure only this CSRF error is transformed into 403? I didn't yet do it because any usage of `LogoutException` would have resulted in 500, which always is worse than 403.

Commits
-------

50348f2eb7 Fixed handling of CSRF logout error
2020-05-26 17:59:18 +02:00
Wouter de Jong
50348f2eb7 Fixed handling of CSRF logout error 2020-05-26 17:30:38 +02:00
Loïc Beurlet
a91204a79d [WebProfilerBundle] changed label of memory usage in time panel (Mb into MiB) 2020-05-26 14:58:50 +02:00
Fabien Potencier
a4f8a49e94 minor #36959 [DotEnv][WebLink][Templating][ErrorHandler] Updated README with minimal example (wouterj)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[DotEnv][WebLink][Templating][ErrorHandler] Updated README with minimal example

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

We're about to delete some more component docs. The minimal examples where copy/pasted from the original component docs.

Commits
-------

f3b8a58513 [DotEnv][WebLink][Templating][ErrorHandler] Updated README with minimal example
2020-05-26 11:42:48 +02:00
Wouter de Jong
f3b8a58513 [DotEnv][WebLink][Templating][ErrorHandler] Updated README with minimal example 2020-05-26 11:42:42 +02:00
Fabien Potencier
9a16c8ef27 bumped Symfony version to 5.1.0 2020-05-26 09:39:17 +02:00
Fabien Potencier
40784fbdce
Merge pull request #36968 from fabpot/release-5.1.0-RC2
released v5.1.0-RC2
2020-05-26 09:35:42 +02:00
Fabien Potencier
5715e6e4f0 updated VERSION for 5.1.0-RC2 2020-05-26 09:22:08 +02:00
Fabien Potencier
28d807189f updated CHANGELOG for 5.1.0-RC2 2020-05-26 09:20:45 +02:00
Fabien Potencier
7f6934c257 bug #36966 Fix extra SQL support in Doctrine migrations (fabpot)
This PR was merged into the 5.1 branch.

Discussion
----------

Fix extra SQL support in Doctrine migrations

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

/cc @weaverryan

Commits
-------

1d1f3e1cd4 Fix extra SQL support in Doctrine migrations
2020-05-26 09:17:46 +02:00
Fabien Potencier
47398357fb bug #36960 [HttpClient] fix management of shorter-than-requested timeouts with AmpHttpClient (nicolas-grekas)
This PR was merged into the 5.1 branch.

Discussion
----------

[HttpClient] fix management of shorter-than-requested timeouts with AmpHttpClient

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

This will fix the most transient test in our CI, which was not a false positive.

Commits
-------

1ac069de0f [HttpClient] fix management of shorter-than-requested timeouts with AmpHttpClient
2020-05-26 08:28:07 +02:00
Fabien Potencier
1d1f3e1cd4 Fix extra SQL support in Doctrine migrations 2020-05-26 08:12:19 +02:00
Nicolas Grekas
1ac069de0f [HttpClient] fix management of shorter-than-requested timeouts with AmpHttpClient 2020-05-25 19:37:45 +02:00
Nicolas Grekas
780c57672b Merge branch '5.0' into 5.1
* 5.0:
  Allow email message to have "To", "Cc", or "Bcc" header to be valid
  [FrameworkBundle] Removed detection of Serializer < 3.2
  Update pull request template for 5.1.
  [Security/Core] fix PHP8 deprecation
2020-05-25 14:33:44 +02:00
Nicolas Grekas
2c262df4ef Merge branch '4.4' into 5.0
* 4.4:
  Allow email message to have "To", "Cc", or "Bcc" header to be valid
  [FrameworkBundle] Removed detection of Serializer < 3.2
  Update pull request template for 5.1.
  [Security/Core] fix PHP8 deprecation
2020-05-25 14:33:25 +02:00
Nicolas Grekas
6a8b22d3b1 Merge branch '3.4' into 4.4
* 3.4:
  [FrameworkBundle] Removed detection of Serializer < 3.2
  Update pull request template for 5.1.
2020-05-25 14:18:50 +02:00
Nicolas Grekas
92adc3f0e5 [Lock] fix test 2020-05-25 13:55:11 +02:00
Fabien Potencier
e7f40297e5 minor #36953 [Security] Updated a deprecation message (javiereguiluz)
This PR was merged into the 5.1 branch.

Discussion
----------

[Security] Updated a deprecation message

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

Commits
-------

835712747d [Security] Updated a deprecation message
2020-05-25 12:02:56 +02:00
Javier Eguiluz
835712747d [Security] Updated a deprecation message 2020-05-25 11:48:26 +02:00
Fabien Potencier
4f40da5809 minor #36946 [FrameworkBundle] Removed detection of Serializer < 3.2 (derrabus)
This PR was merged into the 3.4 branch.

Discussion
----------

[FrameworkBundle] Removed detection of Serializer < 3.2

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

The test that is changed here contains detection logic for Serializer versions prior 3.2. However, accoring to FrameworkBundle's composer.json, we need at least Serializer 3.3, so that logic is obsolete.

I came across this piece of code because on the 5.1 branch, this test is actually skipped because the `use` statement for `CacheClassMetadataFactory` is missing there.

Commits
-------

9badd71687 [FrameworkBundle] Removed detection of Serializer < 3.2
2020-05-25 08:17:20 +02:00
Fabien Potencier
b6c43b6c72 minor #36942 Update pull request template for 5.1 (derrabus)
This PR was merged into the 3.4 branch.

Discussion
----------

Update pull request template for 5.1

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

Commits
-------

d4b598c789 Update pull request template for 5.1.
2020-05-25 08:16:18 +02:00
Fabien Potencier
b524e04300 bug #36947 [Mime] Allow email message to have "To", "Cc", or "Bcc" header to be valid (Ernest Hymel)
This PR was submitted for the master branch but it was merged into the 4.4 branch instead.

Discussion
----------

[Mime] Allow email message to have "To", "Cc", or "Bcc" header to be valid

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

Allow emails to have any one of To:, Cc:, or Bcc: fields rather than forcing a required To: field.

Commits
-------

35b7e1cb9a Allow email message to have "To", "Cc", or "Bcc" header to be valid
2020-05-25 07:42:40 +02:00
Ernest Hymel
35b7e1cb9a Allow email message to have "To", "Cc", or "Bcc" header to be valid 2020-05-25 07:42:33 +02:00
Nicolas Grekas
369387589e bug #36943 [FrameworkBundle] Fix MicroKernelTrait for php 8 (derrabus)
This PR was squashed before being merged into the 5.1 branch.

Discussion
----------

[FrameworkBundle] Fix MicroKernelTrait for php 8

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

This PR fixes several php 8 related issues with `MicroKernelTrait`.

* Anonymous microkernel classes were not handled properly. I've added a test case to cover this scenario and fixed the issues.
* As part of the upgrade path, the trait logic parsed `TypeErrors` raised by php. That code broke because the wording of those errors has changed. I've replaced that logic with a hopefully less brittle reflection-based approach.
* In order to fix compatibility issues, @nicolas-grekas has already commented out the two abstract methods of the trait. If someone forgets to implement them, they would've ran into rather cryptic errors. I've added tests for these scenarios as well and introduced user-friendly exceptions.

I've noticed that implementing an old-style `configureContainer()` does not raise any deprecation. Is that on purpose? I really think that we should deprecate the old way, so we can re-add the abstract methods again in Symfony 6.

Commits
-------

7f3132ebe3 [FrameworkBundle] Fix MicroKernelTrait for php 8
2020-05-25 00:00:08 +02:00
Alexander M. Turek
7f3132ebe3 [FrameworkBundle] Fix MicroKernelTrait for php 8 2020-05-24 23:59:22 +02:00
Nicolas Grekas
bf43fa3b34 minor #36941 [HttpFoundation] Avoid TypeError when calling \SessionHandlerInterface::gc() (derrabus)
This PR was merged into the 5.1 branch.

Discussion
----------

[HttpFoundation] Avoid TypeError when calling \SessionHandlerInterface::gc()

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

This should fix the remaining red php 8 test of the HttpFoundation suite.

Commits
-------

12f734d8b3 [HttpFoundation] Avoid TypeError when calling \SessionHandlerInterface::gc().
2020-05-24 20:56:05 +02:00
Nicolas Grekas
595ca2ec8b minor #36945 [DependencyInjection] Fixed tests for wither with static return type (derrabus)
This PR was merged into the 5.1 branch.

Discussion
----------

[DependencyInjection] Fixed tests for wither with static return type

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

This PR fixes the remaining failing test on php 8 for the DependencyInjection suite.

Commits
-------

b27b535126 [DependencyInjection] Fixed tests for wither with static return type.
2020-05-24 20:45:32 +02:00
Alexander M. Turek
9badd71687 [FrameworkBundle] Removed detection of Serializer < 3.2 2020-05-24 17:32:05 +02:00
Alexander M. Turek
b27b535126 [DependencyInjection] Fixed tests for wither with static return type. 2020-05-24 17:04:36 +02:00
Alexander M. Turek
d4b598c789
Update pull request template for 5.1. 2020-05-24 14:21:57 +02:00
Alexander M. Turek
12f734d8b3 [HttpFoundation] Avoid TypeError when calling \SessionHandlerInterface::gc(). 2020-05-24 14:18:07 +02:00
Nicolas Grekas
5233cb96f4 bug #36938 Don't call method_exists() with non-objects. (derrabus)
This PR was merged into the 5.1 branch.

Discussion
----------

Don't call method_exists() with non-objects.

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

Followup to #36901.

Commits
-------

9efb442ce5 Don't call method_exists() with non-objects.
2020-05-24 12:54:01 +02:00
Alexander M. Turek
9efb442ce5 Don't call method_exists() with non-objects. 2020-05-24 12:15:36 +02:00
Nicolas Grekas
2fd78c6a89 minor #36937 [Lock] skip tests when ext-mongo is not installed (nicolas-grekas)
This PR was merged into the 5.1 branch.

Discussion
----------

[Lock] skip tests when ext-mongo is not installed

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

Commits
-------

c0d4617820 [Lock] skip tests when ext-mongo is not installed
2020-05-24 12:11:47 +02:00
Nicolas Grekas
c0d4617820 [Lock] skip tests when ext-mongo is not installed 2020-05-24 12:09:11 +02:00
Nicolas Grekas
aa53bdb77b [Security/Core] fix PHP8 deprecation 2020-05-24 11:45:24 +02:00
Nicolas Grekas
e3069df98f bug #36936 [FrameworkBundle] don't use abstract methods in MicroKernelTrait, their semantics changed in PHP 8 (nicolas-grekas)
This PR was merged into the 5.1 branch.

Discussion
----------

[FrameworkBundle] don't use abstract methods in MicroKernelTrait, their semantics changed in PHP 8

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

In PHP 8, abstract methods on traits are now enforcing that their using classes match the signature.

But this is not the semantics we need in this trait: we want to allow ppl to use a different type of configurators, to provide extensibility of the DSL each provide.

This makes nightly job fail with fatal error currently.

There is no other options here.

/cc @nikic FYI

Commits
-------

4473f454ca [FrameworkBundle] don't use abstract methods in MicroKernelTrait, their semantics changed in PHP 8
2020-05-24 11:40:24 +02:00
Nicolas Grekas
4488c30990 bug #36935 [HttpClient] Adjust AmpResponse to the stricter trait handling in php 8 (derrabus)
This PR was merged into the 5.1 branch.

Discussion
----------

[HttpClient] Adjust AmpResponse to the stricter trait handling in php 8

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

Follows #36908.

Commits
-------

e3aa78fd51 [HttpClient] Adjust AmpResponse to the stricter trait handling in php 8.
2020-05-24 11:29:49 +02:00
Alexander M. Turek
e3aa78fd51 [HttpClient] Adjust AmpResponse to the stricter trait handling in php 8. 2020-05-24 11:25:47 +02:00
Nicolas Grekas
4473f454ca [FrameworkBundle] don't use abstract methods in MicroKernelTrait, their semantics changed in PHP 8 2020-05-24 11:24:07 +02:00
Nicolas Grekas
6868f6cd1a Merge branch '5.0' into 5.1
* 5.0:
  [travis] display deprecations in nightly jobs
2020-05-24 10:59:54 +02:00
Nicolas Grekas
466b70d655 Merge branch '4.4' into 5.0
* 4.4:
  [travis] display deprecations in nightly jobs
2020-05-24 10:58:00 +02:00
Nicolas Grekas
6e7658baff Merge branch '3.4' into 4.4
* 3.4:
  [travis] display deprecations in nightly jobs
2020-05-24 10:57:28 +02:00
Nicolas Grekas
c08d8d116c minor #36934 [travis] display deprecations in nightly jobs (nicolas-grekas)
This PR was merged into the 3.4 branch.

Discussion
----------

[travis] display deprecations in nightly jobs

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

Commits
-------

83a34a84ab [travis] display deprecations in nightly jobs
2020-05-24 10:57:17 +02:00
Nicolas Grekas
83a34a84ab [travis] display deprecations in nightly jobs 2020-05-24 10:55:27 +02:00
Nicolas Grekas
2ed4e0efce Merge branch '5.0' into 5.1
* 5.0:
  Parse and render anonymous classes correctly on php 8
  Enable APCu for the php 8 build.
  [Process] Fix failing test on php 8.
  [HttpKernel] fix test
  Make PHP 8 green on Travis
  Revert "[Cache] allow DBAL v3"
  [PropertyAccessor] Added missing property path on php 8.
  Don't execute tests with DBAL 2.x on php 8.
2020-05-24 10:49:09 +02:00
Nicolas Grekas
49eb5c9c1f Merge branch '4.4' into 5.0
* 4.4:
  Parse and render anonymous classes correctly on php 8
  Enable APCu for the php 8 build.
  [Process] Fix failing test on php 8.
  [HttpKernel] fix test
  Make PHP 8 green on Travis
  Revert "[Cache] allow DBAL v3"
  [PropertyAccessor] Added missing property path on php 8.
  Don't execute tests with DBAL 2.x on php 8.
2020-05-24 10:40:42 +02:00
Nicolas Grekas
6d02565ea7 bug #36914 Parse and render anonymous classes correctly on php 8 (derrabus)
This PR was merged into the 4.4 branch.

Discussion
----------

Parse and render anonymous classes correctly on php 8

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

The format of the value that `get_class()` returns for anonymous classes has changed in php 8. This PR attempts to detect both formats, with the help of the PHP80 polyfill where possible.

Commits
-------

9d702fd94b Parse and render anonymous classes correctly on php 8
2020-05-24 10:35:29 +02:00
Alexander M. Turek
9d702fd94b Parse and render anonymous classes correctly on php 8 2020-05-24 10:33:35 +02:00