Commit Graph

52544 Commits

Author SHA1 Message Date
Alexander M. Turek
4145914482 [PhpUnitBridge] Remove linter. 2020-12-15 00:14:20 +01:00
Alexander M. Turek
138b273056 Merge branch '5.2' into 5.x
* 5.2:
  [Notifier] Rework/streamline bridges (5.1)
  [Mailer] [Amazon] Ensure "ext-simplexml" is loaded if SesApiTransport is used
  Stop using deprecated trait
  [PhpUnitBridge] Lint files with PHP 5.5
2020-12-15 00:08:52 +01:00
Alexander M. Turek
6caf916083 Merge branch '5.1' into 5.2
* 5.1:
  [Notifier] Rework/streamline bridges (5.1)
  [Mailer] [Amazon] Ensure "ext-simplexml" is loaded if SesApiTransport is used
  Stop using deprecated trait
  [PhpUnitBridge] Lint files with PHP 5.5
2020-12-14 23:27:17 +01:00
Alexander M. Turek
ef461b6f8e minor #39455 [Notifier] Rework/streamline bridges (5.1) (OskarStark)
This PR was squashed before being merged into the 5.1 branch.

Discussion
----------

[Notifier] Rework/streamline bridges (5.1)

| Q             | A
| ------------- | ---
| Branch?       | 5.1
| Bug fix?      | no
| 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        | ---

This PR

* add missing tests
* pull up scheme check (check scheme first and then for required options)

Commits
-------

856e191687 [Notifier] Rework/streamline bridges (5.1)
2020-12-14 23:20:55 +01:00
Oskar Stark
856e191687 [Notifier] Rework/streamline bridges (5.1) 2020-12-14 23:20:24 +01:00
Jérémy Derussé
2fb9fa3dac
Merge branch '4.4' into 5.1
* 4.4:
  [Mailer] [Amazon] Ensure "ext-simplexml" is loaded if SesApiTransport is used
  Stop using deprecated trait
  [PhpUnitBridge] Lint files with PHP 5.5
2020-12-14 21:31:08 +01:00
Jérémy Derussé
e96b0e7d4d
minor #39463 [Mailer] [Amazon] Ensure "ext-simplexml" is loaded if SesApiTransport is used (OskarStark)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[Mailer] [Amazon] Ensure "ext-simplexml" is loaded if SesApiTransport is used

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

For reference:
150d8506e4/src/Symfony/Component/Mailer/Bridge/Amazon/Transport/SesApiTransport.php (L66-L69)

Commits
-------

a40d1375f9 [Mailer] [Amazon] Ensure "ext-simplexml" is loaded if SesApiTransport is used
2020-12-14 21:27:32 +01:00
Oskar Stark
a40d1375f9
[Mailer] [Amazon] Ensure "ext-simplexml" is loaded if SesApiTransport is used 2020-12-14 21:27:17 +01:00
Nicolas Grekas
698dadccb1 minor #39497 [PhpUnitBridge] [phpunit] Stop using deprecated trait (jderusse)
This PR was merged into the 4.4 branch.

Discussion
----------

[PhpUnitBridge] [phpunit] Stop using deprecated trait

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

the `SetUpTearDownTrait` trait has been removed in #39487 this PR remove usage of it in branch 4.4

Commits
-------

55ed00cd3c Stop using deprecated trait
2020-12-14 17:15:46 +01:00
Jérémy Derussé
55ed00cd3c
Stop using deprecated trait 2020-12-14 16:50:10 +01:00
Nicolas Grekas
510623f890 minor #39421 [PhpUnitBridge] Lint files with PHP 5.5 (derrabus)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[PhpUnitBridge] Lint files with PHP 5.5

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

I'd like to make sure that PhpUnitBridge remains compatible with PHP 5.5.

cc @nicolas-grekas @fancyweb

Commits
-------

0bc15ff759 [PhpUnitBridge] Lint files with PHP 5.5
2020-12-14 16:00:54 +01:00
Alexander M. Turek
0bc15ff759 [PhpUnitBridge] Lint files with PHP 5.5 2020-12-14 16:00:48 +01:00
Nicolas Grekas
c82567b02f Merge branch '5.2' into 5.x
* 5.2:
  Fix EncoderInterface::encode() return type
  [Lock] Prevent store exception break combined store
  Remove check for unsupported PHP version
  [Notifier] Rename test method names
  Fix missing kernel.build_dir on cache clear
  [Notifier][Discord] Fix exception message + test
2020-12-14 12:03:42 +01:00
Nicolas Grekas
b81a03d7a1 Merge branch '5.1' into 5.2
* 5.1:
  Fix EncoderInterface::encode() return type
  [Lock] Prevent store exception break combined store
  Remove check for unsupported PHP version
  [Notifier] Rename test method names
2020-12-14 11:56:50 +01:00
Nicolas Grekas
bae2782cdb Merge branch '4.4' into 5.1
* 4.4:
  Fix EncoderInterface::encode() return type
  [Lock] Prevent store exception break combined store
2020-12-14 11:55:48 +01:00
Nicolas Grekas
25f79ab808 minor #39444 [Notifier] [Discord] Fix exception message + test (OskarStark)
This PR was merged into the 5.2 branch.

Discussion
----------

[Notifier] [Discord] Fix exception message + test

| Q             | A
| ------------- | ---
| Branch?       | 5.2
| 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        | ---

Before this PR the message was wrong, "less than 2000" is not correct, it can have 2000 chars, but not more.

Commits
-------

01623391f6 [Notifier][Discord] Fix exception message + test
2020-12-14 11:49:49 +01:00
Nicolas Grekas
c052542e65 minor #39451 [Serializer] Fix EncoderInterface::encode() return type (jeroennoten)
This PR was merged into the 4.4 branch.

Discussion
----------

[Serializer] Fix EncoderInterface::encode() return type

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

I might have missed something (in that case, please let me know), but I believe that `EncoderInterface::encode()` will and should always return a `string`. This makes more sense because `DecoderInterface::decode()` only accepts a string as input.

Commits
-------

ae6f054cc1 Fix EncoderInterface::encode() return type
2020-12-14 11:44:27 +01:00
Jeroen Noten
ae6f054cc1 Fix EncoderInterface::encode() return type 2020-12-14 11:44:14 +01:00
Nicolas Grekas
43ab20e4f2 bug #39476 [Lock] Prevent store exception break combined store (dzubchik)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[Lock] Prevent store exception break combined store

| 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 #39470 <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License       | MIT

Handle exception to preserve expected behavior - one or multiple stores could be unreachable in a moment and combined store will handle this according to strategy.

Commits
-------

0daff35bae [Lock] Prevent store exception break combined store
2020-12-14 11:21:44 +01:00
Dmytro Dzubenko
0daff35bae [Lock] Prevent store exception break combined store 2020-12-14 11:21:37 +01:00
Nicolas Grekas
936bab4b3b bug #39478 [FrameworkBundle] Fix missing kernel.build_dir on cache clear (chalasr)
This PR was merged into the 5.2 branch.

Discussion
----------

[FrameworkBundle] Fix missing kernel.build_dir on cache clear

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

Fixes post-upgrade cache:clear on 5.2.

Commits
-------

42abc059a6 Fix missing kernel.build_dir on cache clear
2020-12-14 11:19:29 +01:00
Nicolas Grekas
aa0d2c8c0d minor #39490 Remove check for unsupported PHP version (pierredup)
This PR was merged into the 5.1 branch.

Discussion
----------

Remove check for unsupported PHP version

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

Remove check for PHP 7.1 since it's not supported anymore

Commits
-------

14c3614ac4 Remove check for unsupported PHP version
2020-12-14 11:17:57 +01:00
Pierre du Plessis
14c3614ac4 Remove check for unsupported PHP version 2020-12-14 12:10:03 +02:00
Nicolas Grekas
a4f71a6695 bug #39487 [PhpUnitBridge] Restore SetUpTearDownTraitForV5 (jderusse)
This PR was squashed before being merged into the 5.3-dev branch.

Discussion
----------

[PhpUnitBridge] Restore SetUpTearDownTraitForV5

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

The class `SetUpTearDownTraitForV5` removed in #39419 is still needed when using PHPUNIT 7.5 (PHP 7.1) that does not have return type:

520723129e/src/Framework/TestCase.php (L407)

Commits
-------

e2198a892f [PhpUnitBridge] Restore SetUpTearDownTraitForV5
2020-12-14 10:25:07 +01:00
Jérémy Derussé
e2198a892f [PhpUnitBridge] Restore SetUpTearDownTraitForV5 2020-12-14 10:24:53 +01:00
Nicolas Grekas
b1246ebf9e minor #39489 [Notifier] Rename test method names (OskarStark)
This PR was merged into the 5.1 branch.

Discussion
----------

[Notifier] Rename test method names

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

To stay consistent

Commits
-------

45b3a3062c [Notifier] Rename test method names
2020-12-14 10:22:39 +01:00
Oskar Stark
45b3a3062c [Notifier] Rename test method names
To stay consistent
2020-12-14 10:19:36 +01:00
Fabien Potencier
026da8b58e Merge branch '5.2' into 5.x
* 5.2:
  Fix tests
  Fix applyVersion tests
  [Notifier][Free Mobile] Fix wrong scheme in mapping
2020-12-14 08:03:34 +01:00
Fabien Potencier
e05b8ef230 Merge branch '5.1' into 5.2
* 5.1:
  Fix tests
  Fix applyVersion tests
  [Notifier][Free Mobile] Fix wrong scheme in mapping
2020-12-14 08:03:22 +01:00
Fabien Potencier
9d73e7caf0 Merge branch '4.4' into 5.1
* 4.4:
  Fix tests
2020-12-14 08:03:02 +01:00
Fabien Potencier
0a8a3d77e8 minor #39486 [Asset] Fix tests for 5.1 (jderusse)
This PR was merged into the 5.1 branch.

Discussion
----------

[Asset] Fix tests for 5.1

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

Commits
-------

fe40ddb013 Fix applyVersion tests
2020-12-14 08:02:33 +01:00
Fabien Potencier
3ebcc28fab minor #39485 [Asset] Fix tests (jderusse)
This PR was merged into the 4.4 branch.

Discussion
----------

[Asset] Fix tests

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

Commits
-------

d651fb539c Fix tests
2020-12-14 08:01:17 +01:00
Fabien Potencier
ee901c35b7 feature #39480 [FrameworkBundle] Add "mailer" monolog channel to mailer transports (chalasr)
This PR was merged into the 5.3-dev branch.

Discussion
----------

[FrameworkBundle] Add "mailer" monolog channel to mailer transports

| Q             | A
| ------------- | ---
| Branch?       | 5.x
| Bug fix?      | no
| New feature?  | yes
| Deprecations? | no
| Tickets       | Fix https://github.com/symfony/symfony/issues/38318
| License       | MIT
| Doc PR        | -

Commits
-------

59db08b1a5 [FrameworkBundle] Add mailer monolog channel on mailer transport definitions
2020-12-14 07:48:52 +01:00
Jérémy Derussé
d651fb539c
Fix tests 2020-12-13 23:21:11 +01:00
Jérémy Derussé
fe40ddb013
Fix applyVersion tests 2020-12-13 19:27:25 +01:00
Robin Chalas
59db08b1a5 [FrameworkBundle] Add mailer monolog channel on mailer transport definitions 2020-12-13 14:11:58 +01:00
Fabien Potencier
e2053d0322 feature #39419 [PhpUnitBridge] bump "php" to 7.1+ and "phpunit" to 7.5+ (nicolas-grekas)
This PR was merged into the 5.3-dev branch.

Discussion
----------

[PhpUnitBridge] bump "php" to 7.1+ and "phpunit" to 7.5+

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

Now that we don't maintain any branch with PHP < 7.1, we can drop support for older PHP and phpunit versions from the bridge \o/

Commits
-------

fe24f73ec0 [PhpUnitBridge] bump "php" to 7.1+ and "phpunit" to 7.5+
2020-12-13 09:03:28 +01:00
Robin Chalas
42abc059a6 Fix missing kernel.build_dir on cache clear 2020-12-12 23:17:42 +01:00
Fabien Potencier
7c7366a82a bug #39456 [Notifier] [Free Mobile] Fix wrong scheme in mapping (OskarStark)
This PR was merged into the 5.1 branch.

Discussion
----------

[Notifier] [Free Mobile] Fix wrong scheme in mapping

| Q             | A
| ------------- | ---
| Branch?       | 5.1
| 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        | ---

The scheme is `freemobile`, not `free-mobile`

For reference:
134af39538/src/Symfony/Component/Notifier/Bridge/FreeMobile/FreeMobileTransportFactory.php (L41-L43)

Commits
-------

6eae1951ee [Notifier][Free Mobile] Fix wrong scheme in mapping
2020-12-12 09:30:23 +01:00
Fabien Potencier
e9729550b2 feature #39410 [Notifier] Add HeaderBlock for slack notifier (norkunas)
This PR was merged into the 5.3-dev branch.

Discussion
----------

[Notifier] Add HeaderBlock for slack notifier

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

Commits
-------

421d01b872 Add HeaderBlock for slack notifier
2020-12-12 09:24:03 +01:00
Alexander M. Turek
3760dda356 Merge branch '5.2' into 5.x
* 5.2:
  Fix enabled key for ratelimiter config
  Use more explicit variable name
  Fix wrong comment about SES region
  [Mailer] [Sendgrid] Use $scheme variable to stay consistent
  [Mailer] [Amazon] Fix @param annotation
  [Mailer] Rename testsuites
  Remove void return type from test methods
  Remove void return type from test methods
  [Notifier] Remove void return type from test methods
  [Notifier][Telegram] Remove void return type from test methods
  [Notifier][Esendex] Remove void return type from test methods
  [Notifier][Sendinblue] Remove void return type from test methods
  [Notifier][GoogleChat] Remove void return type from test methods
  [Notifier] Move ext-json below php requirement to stay consistent
2020-12-12 01:32:42 +01:00
Alexander M. Turek
07aa1ed143 Merge branch '5.1' into 5.2
* 5.1:
  Use more explicit variable name
  Fix wrong comment about SES region
  [Mailer] [Sendgrid] Use $scheme variable to stay consistent
  [Mailer] [Amazon] Fix @param annotation
  [Mailer] Rename testsuites
  Remove void return type from test methods
  Remove void return type from test methods
  [Notifier] Remove void return type from test methods
2020-12-12 00:40:07 +01:00
Alexander M. Turek
7d846d3e82 Merge branch '4.4' into 5.1
* 4.4:
  Use more explicit variable name
  Fix wrong comment about SES region
  [Mailer] [Sendgrid] Use $scheme variable to stay consistent
  [Mailer] [Amazon] Fix @param annotation
  [Mailer] Rename testsuites
  Remove void return type from test methods
2020-12-12 00:11:02 +01:00
Alexander M. Turek
d259c84b60 bug #39474 [DomCrawler] Fix null namespace issue in Crawler (prosalov)
This PR was merged into the 5.3-dev branch.

Discussion
----------

[DomCrawler] Fix null namespace issue in Crawler

| Q             | A
| ------------- | ---
| Branch?       | 5.x <!-- see below -->
| 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 #39277 <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License       | MIT
| Doc PR        |  <!-- required for new features -->

In this case `isset` may cause an issue if null value would be stored in `$this->namespaces` or `$this->cachedNamespaces`, but never fetched, as if condition would return false. This PR is for 5.x, because namespace caching was introduced recently (#39097).

Commits
-------

7b0a183920 [DomCrawler] Fix null namespace issue in Crawler
2020-12-12 00:08:45 +01:00
prosalov
7b0a183920 [DomCrawler] Fix null namespace issue in Crawler 2020-12-11 21:51:28 +00:00
Jérémy Derussé
e5167e668c
feature #39365 [Notifier] [DX] UnsupportedMessageTypeException for notifier transports (OskarStark)
This PR was squashed before being merged into the 5.3-dev branch.

Discussion
----------

[Notifier] [DX] UnsupportedMessageTypeException for notifier transports

| Q             | A
| ------------- | ---
| Branch?       | 5.x
| Bug fix?      | no
| New feature?  | yes <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | --
| License       | MIT
| Doc PR        | --

I want to streamline the experience, creating new notifier transports. Maybe such exceptions fit well, as we are planing to get more and more transports and don't want to "pollute" the transports itself with repeatable code.

Please let me know if you are open to have such exceptions as I would like to introduce more of them for unsupported options for example and if this should be considered a new feature or it should be applied against `5.1`?

I am not sure about the signature and the name of the new `UnsupportedMessageTypeException`.

Cheers

Commits
-------

cf1d352eac [Notifier] [DX] UnsupportedMessageTypeException for notifier transports
2020-12-11 21:40:04 +01:00
Oskar Stark
cf1d352eac
[Notifier] [DX] UnsupportedMessageTypeException for notifier transports 2020-12-11 21:39:36 +01:00
Jérémy Derussé
cb05fab4c7
bug #39442 Fix enabled key for ratelimiter config (pierredup)
This PR was squashed before being merged into the 5.2 branch.

Discussion
----------

Fix enabled key for ratelimiter config

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

The `enabled` key doesn't always exist in the config when using the ratelimiter component, which causes an undefined index error

Commits
-------

d48e2c2431 Fix enabled key for ratelimiter config
2020-12-11 21:33:35 +01:00
Pierre du Plessis
d48e2c2431
Fix enabled key for ratelimiter config 2020-12-11 21:33:24 +01:00
Jérémy Derussé
4121f47883
minor #39472 Use more explicit variable name (VincentLanglet)
This PR was merged into the 4.4 branch.

Discussion
----------

Use more explicit variable name

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> -->
| License       | MIT

- This is called `$container` in https://symfony.com/blog/new-in-symfony-5-1-improved-microkernel.
- In the same file, in `registerContainerConfiguration` we're doing `$this->configureContainer($container, $loader);`.

So I think that `$container` is better than `$c`.

Commits
-------

337174fa4b Use more explicit variable name
2020-12-11 21:31:26 +01:00