Commit Graph

48808 Commits

Author SHA1 Message Date
Stefan Kruppa
b009254090 [Security] Improve method signatures (minor) 2020-05-09 13:45:48 +02:00
Nicolas Grekas
fb90fb3bb7 minor #36758 [5.1] CS fixes (nicolas-grekas)
This PR was merged into the 5.1-dev branch.

Discussion
----------

[5.1] CS fixes

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

Commits
-------

bb164e6615 [5.1] CS fixes
2020-05-08 14:37:13 +02:00
Nicolas Grekas
f8616f8eae Merge branch '5.0'
* 5.0:
  [PhpUnitBridge] fix bad test
  [4.4] CS fixes
  [3.4] CS fixes
  Disable phpunit verbosity
  Queue name is a required parameter
  [FrameworkBundle] display actual target for error in AssetsInstallCommand
  Remove patches for Doctrine bugs and deprecations
  [Mime] fix bad method call on "EmailAddressContains"
  [DI][EventDispatcher] added contract for implementation
2020-05-08 14:36:29 +02:00
Nicolas Grekas
0b34b39cc8 Merge branch '4.4' into 5.0
* 4.4:
  [PhpUnitBridge] fix bad test
  [4.4] CS fixes
  [3.4] CS fixes
  Disable phpunit verbosity
  Queue name is a required parameter
  [FrameworkBundle] display actual target for error in AssetsInstallCommand
  Remove patches for Doctrine bugs and deprecations
  [Mime] fix bad method call on "EmailAddressContains"
  [DI][EventDispatcher] added contract for implementation
2020-05-08 14:34:39 +02:00
Nicolas Grekas
3783200074 minor #36761 [PhpUnitBridge] fix bad test (nicolas-grekas)
This PR was merged into the 4.4 branch.

Discussion
----------

[PhpUnitBridge] fix bad test

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

Mutating the global state of the autoloader... terrible idea. This should fix tests and remove the lines we were wondering about in the CI:
`Undefined index: remaining selfCount in [...]`

Commits
-------

edb517699a [PhpUnitBridge] fix bad test
2020-05-08 14:34:26 +02:00
Nicolas Grekas
edb517699a [PhpUnitBridge] fix bad test 2020-05-08 14:32:38 +02:00
Nicolas Grekas
da8b9552ad Merge branch '3.4' into 4.4
* 3.4:
  [3.4] CS fixes
2020-05-08 12:54:34 +02:00
Nicolas Grekas
020fa77db9 minor #36757 [4.4] CS fixes (nicolas-grekas)
This PR was merged into the 4.4 branch.

Discussion
----------

[4.4] CS fixes

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

Commits
-------

eba09d47e7 [4.4] CS fixes
2020-05-08 12:54:24 +02:00
Nicolas Grekas
1e1060f2eb minor #36756 [3.4] CS fixes (nicolas-grekas)
This PR was merged into the 3.4 branch.

Discussion
----------

[3.4] CS fixes

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

Commits
-------

02b378f248 [3.4] CS fixes
2020-05-08 12:53:15 +02:00
Nicolas Grekas
bb164e6615 [5.1] CS fixes 2020-05-08 12:41:08 +02:00
Nicolas Grekas
eba09d47e7 [4.4] CS fixes 2020-05-08 12:39:41 +02:00
Nicolas Grekas
02b378f248 [3.4] CS fixes 2020-05-08 12:38:31 +02:00
Nicolas Grekas
66cd9f470c Disable phpunit verbosity 2020-05-08 12:04:27 +02:00
Nicolas Grekas
e75c227d79 bug #36747 Queue name is a required parameter (theravel)
This PR was submitted for the 5.0 branch but it was merged into the 4.4 branch instead.

Discussion
----------

Queue name is a required parameter

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

Queue name is required parameter, which means this block will just fail

Commits
-------

9d48eedbdc Queue name is a required parameter
2020-05-08 12:02:38 +02:00
theravel
9d48eedbdc Queue name is a required parameter 2020-05-08 12:02:31 +02:00
Nicolas Grekas
a60937519b bug #36751 [Mime] fix bad method call on EmailAddressContains (Kocal)
This PR was merged into the 4.4 branch.

Discussion
----------

[Mime] fix bad method call on `EmailAddressContains`

| 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       | -
| License       | MIT
| Doc PR        | -

There is no method `Address` on [`MailboxHeader`](https://github.com/symfony/symfony/blob/4.4/src/Symfony/Component/Mime/Header/MailboxHeader.php), but a method `getAddress`.

Commits
-------

227ebd2fe9 [Mime] fix bad method call on "EmailAddressContains"
2020-05-08 11:59:36 +02:00
Nicolas Grekas
2dbfeb9db9 Merge branch '3.4' into 4.4
* 3.4:
  [FrameworkBundle] display actual target for error in AssetsInstallCommand
  Remove patches for Doctrine bugs and deprecations
  [DI][EventDispatcher] added contract for implementation
2020-05-08 11:58:40 +02:00
Nicolas Grekas
f6ae18e3ac minor #36710 [DI][EventDispatcher] added contract for implementation (bestform)
This PR was merged into the 3.4 branch.

Discussion
----------

[DI][EventDispatcher] added contract for implementation

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

As described in the attached issue a comment in the documentation of the `EventSubscriberInterface` would be helpful to make sure users do not use logic based on runtime state in their implementation of `getSubscribedEvents`.

Commits
-------

88e43d4d4c [DI][EventDispatcher] added contract for implementation
2020-05-08 11:57:02 +02:00
Nicolas Grekas
94482fe1be minor #36726 [FrameworkBundle] display actual target for error in AssetsInstallCommand (NerdyProjects)
This PR was submitted for the 4.4 branch but it was merged into the 3.4 branch instead.

Discussion
----------

[FrameworkBundle] display actual target for error in AssetsInstallCommand

| 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       |
| License       | MIT

When assets:install fails because the target directory does not exist, it should display the actual directory it wanted to have instead of the configuration directive. In most cases, the target directory is retrieved from the kernel config and thus differs from the argument.

Commits
-------

f177b3d488 [FrameworkBundle] display actual target for error in AssetsInstallCommand
2020-05-08 11:56:21 +02:00
Matthias Larisch
f177b3d488 [FrameworkBundle] display actual target for error in AssetsInstallCommand
When assets:install fails because the target directory does not exist, it should display the actual directory it wanted to have instead of the configuration directive. In most cases, the target directory is retrieved from the kernel config and thus differs from the argument.
2020-05-08 11:56:06 +02:00
Nicolas Grekas
9b088bb014 minor #36744 Remove patches for Doctrine bugs and deprecations (greg0ire)
This PR was squashed before being merged into the 3.4 branch.

Discussion
----------

Remove patches for Doctrine bugs and deprecations

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | no
| 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        | n/a

This PR removes patches put in place because of a bug fixed in doctrine/dbal#3994, and because of deprecations addressed in doctrine/orm#7953

Commits
-------

2f305cdc83 Remove patches for Doctrine bugs and deprecations
2020-05-08 11:45:19 +02:00
Grégoire Paris
2f305cdc83 Remove patches for Doctrine bugs and deprecations 2020-05-08 11:45:13 +02:00
Hugo Alliaume
227ebd2fe9
[Mime] fix bad method call on "EmailAddressContains"
There is no method `Address` on `MailboxHeader`, but a method `getAddress`.
2020-05-08 10:53:13 +02:00
Fabien Potencier
8f58a2d392 bug #36737 [Cache] fix accepting sub-second max-lifetimes in ArrayAdapter (nicolas-grekas)
This PR was merged into the 5.1-dev branch.

Discussion
----------

[Cache] fix accepting sub-second max-lifetimes in ArrayAdapter

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

Commits
-------

cefa1e6e82 [Cache] fix accepting sub-second max-lifetimes in ArrayAdapter
2020-05-08 08:20:41 +02:00
Fabien Potencier
070552e1ca bug #36749 [DI] give priority to container.hot_path over container.no_preload (nicolas-grekas)
This PR was merged into the 5.1-dev branch.

Discussion
----------

[DI] give priority to container.hot_path over container.no_preload

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

Spotted by looking at a website skeleton: `ConsoleHandler` is not preloaded right now (because it listens to console events only) while it should (because it is also wired as a monolog handle and is thus on the hot path.)

Commits
-------

461041f87d [DI] give priority to container.hot_path over container.no_preload
2020-05-08 08:17:45 +02:00
Fabien Potencier
4eb32cfa22 minor #36748 [DI] reduce recursivity of ResolveHotPathPass (nicolas-grekas)
This PR was merged into the 5.1-dev branch.

Discussion
----------

[DI] reduce recursivity of ResolveHotPathPass

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

This provides the same end result but doesn't use recursion when possible.

Commits
-------

9d13d88e8d [DI] reduce recursivity of ResolveHotPathPass
2020-05-08 08:16:55 +02:00
Nicolas Grekas
9d13d88e8d [DI] reduce recursivity of ResolveHotPathPass 2020-05-08 00:37:41 +02:00
Nicolas Grekas
461041f87d [DI] give priority to container.hot_path over container.no_preload 2020-05-08 00:34:01 +02:00
Nicolas Grekas
cefa1e6e82 [Cache] fix accepting sub-second max-lifetimes in ArrayAdapter 2020-05-07 11:51:26 +02:00
Fabien Potencier
75e71e3bbe bug #36721 [FrameworkBundle] remove getProjectDir method from MicroKernelTrait (garak)
This PR was merged into the 5.1-dev branch.

Discussion
----------

[FrameworkBundle] remove getProjectDir method from MicroKernelTrait

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #36719
| License       | MIT
| Doc PR        | not needed

Remove method added in trait, to be able to use same method in base kernel class.

Commits
-------

f2f3ebac8b remove getProjectDir method from MicroKernelTrait
2020-05-06 13:28:34 +02:00
Fabien Potencier
af160e2c3f minor #36724 [HttpFoundation] fix perf of ResponseHeaderBag::initDate() (nicolas-grekas)
This PR was merged into the 5.1-dev branch.

Discussion
----------

[HttpFoundation] fix perf of ResponseHeaderBag::initDate()

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

This change alone makes a skeleton hello world go from 1600 req/s to 1800 req/s on my machine (with preloading enabled to remove the cost of the autoloader).

Another discovery by
[![image](https://user-images.githubusercontent.com/243674/81168746-e00cf280-8f97-11ea-9f18-7e14e84b2828.png)](https://blackfire.io/)

Commits
-------

1294cb5240 [HttpFoundation] fix perf of ResponseHeaderBag::initDate()
2020-05-06 13:24:23 +02:00
Nicolas Grekas
1294cb5240 [HttpFoundation] fix perf of ResponseHeaderBag::initDate() 2020-05-06 12:54:46 +02:00
Massimiliano Arione
f2f3ebac8b
remove getProjectDir method from MicroKernelTrait 2020-05-06 12:44:29 +02:00
Nicolas Grekas
78df4cac34 minor #36704 Configure services additionally required by the master branch (jakzal)
This PR was merged into the 5.1-dev branch.

Discussion
----------

Configure services additionally required by the master branch

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | Re #36647
| License       | MIT
| Doc PR        | -

Additionally run tests for:

* couchbase
* sqs
* kafka
* mongodb (although currently skipped due to #36702)

Before: Tests: 1893, Assertions: 5178, Skipped: 105.
After: Tests: 2042, Assertions: 5407, Skipped: 120.

Commits
-------

dc7ac57a3c Configure services additionally required by the master branch
2020-05-05 21:40:29 +02:00
Jakub Zalas
dc7ac57a3c
Configure services additionally required by the master branch 2020-05-05 20:37:11 +01:00
Nicolas Grekas
7e8d87bd48 Merge branch '5.0'
* 5.0:
  [travis] Fix CI
2020-05-05 19:12:57 +02:00
Nicolas Grekas
f825bf5e28 Merge branch '4.4' into 5.0
* 4.4:
  [travis] Fix CI
2020-05-05 19:12:16 +02:00
Nicolas Grekas
5c24718b1e [travis] Fix CI 2020-05-05 19:12:03 +02:00
Fabien Potencier
651f434783 bumped Symfony version to 5.1.0 2020-05-05 19:11:24 +02:00
Fabien Potencier
2a98849e98
Merge pull request #36713 from fabpot/release-5.1.0-BETA1
released v5.1.0-BETA1
2020-05-05 19:06:04 +02:00
Fabien Potencier
4bc152b033 updated VERSION for 5.1.0-BETA1 2020-05-05 19:05:38 +02:00
Fabien Potencier
f6c0b44441 updated CHANGELOG for 5.1.0-BETA1 2020-05-05 19:05:29 +02:00
Fabien Potencier
4dbf987a1d feature #36711 [Form] deprecate NumberToLocalizedStringTransformer::ROUND_* constants (nicolas-grekas)
This PR was merged into the 5.1-dev branch.

Discussion
----------

[Form] deprecate `NumberToLocalizedStringTransformer::ROUND_*` constants

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

To be considered for 5.1 before introducing the consts on `PercentToLocalizedStringTransformer`.

Commits
-------

ea638549f4 [Form] deprecate `NumberToLocalizedStringTransformer::ROUND_*` constants
2020-05-05 18:55:12 +02:00
Nicolas Grekas
ea638549f4 [Form] deprecate NumberToLocalizedStringTransformer::ROUND_* constants 2020-05-05 18:27:54 +02:00
Nicolas Grekas
05b62e3441 minor #36712 CI fixes (nicolas-grekas)
This PR was merged into the 5.1-dev branch.

Discussion
----------

CI fixes

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

Commits
-------

21edafac5e CI fixes
2020-05-05 18:25:41 +02:00
Nicolas Grekas
21edafac5e CI fixes 2020-05-05 18:19:12 +02:00
Nicolas Grekas
e024db7773 minor #36709 Fix tests (nicolas-grekas)
This PR was merged into the 5.1-dev branch.

Discussion
----------

Fix tests

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

Commits
-------

623e266cab Fix tests
2020-05-05 17:11:10 +02:00
Nicolas Grekas
623e266cab Fix tests 2020-05-05 17:08:52 +02:00
Matthias Derer
88e43d4d4c [DI][EventDispatcher] added contract for implementation
fixes #36708.
2020-05-05 17:06:23 +02:00
Nicolas Grekas
02d9597a41 Merge branch '5.0'
* 5.0:
  Force doctrine/dbal <=2.10.2 when testing
2020-05-05 15:53:42 +02:00