Commit Graph

50801 Commits

Author SHA1 Message Date
Jan Schädlich
1beffd1363 Register NotificationDataCollector and NotificationLoggerListener 2020-09-06 11:11:59 +02:00
dFayet
c1e3703efd Create impersonation_exit_path() and *_url() functions 2020-09-06 10:51:53 +02:00
Fabien Potencier
ee8fc9cb41 bug #38073 [VarDumper] Fix caster for invalid SplFileInfo objects on php 8 (derrabus)
This PR was merged into the 3.4 branch.

Discussion
----------

[VarDumper] Fix caster for invalid SplFileInfo objects on php 8

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

The behavior of uninitialized `SplFileInfo` classes has changed in php 8: https://3v4l.org/s4c4O

* `getPathname()` won't return `false` anymore.
* The error raised by most accessors is now recoverable. On php 7, it's fatal.

This PR adjusts the caster for those objects to the new behavior.

Commits
-------

ab45e2aaae [VarDumper] Fix caster for invalid SplFileInfo objects on php 8.
2020-09-06 08:25:39 +02:00
Fabien Potencier
c98e160191 bug #38074 [Messenger] Remove DelaySeconds parameter for FIFO queues (netbull)
This PR was merged into the 5.1 branch.

Discussion
----------

[Messenger] Remove DelaySeconds parameter for FIFO queues

remove DelaySeconds parameter for FIFO queues

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

As it is written in the [docs](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_SendMessage.html) the DelaySeconds parameter can't be set for FIFO queues.

Commits
-------

c638b497bf Update Connection.php
2020-09-06 08:24:03 +02:00
Aleksandar Dimitrov
c638b497bf
Update Connection.php
remove DelaySeconds parameter for FIFO queues
2020-09-06 02:19:07 +03:00
Alexander M. Turek
ab45e2aaae [VarDumper] Fix caster for invalid SplFileInfo objects on php 8. 2020-09-05 19:45:10 +02:00
Fabien Potencier
63eab44e69 bug #38071 [PhpUnitBridge] Adjust output parsing of CoverageListenerTrait for PHPUnit 9.3 (sanmai, derrabus)
This PR was merged into the 3.4 branch.

Discussion
----------

[PhpUnitBridge] Adjust output parsing of CoverageListenerTrait for PHPUnit 9.3

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

This PR makes `CoverageListenerTrait` pass with PHPUnit 9.3. It contains a backport of #38054.

The problem that is addressed here is that a one of the fixture classes is now included in the output despite having a coverage of zero. The test now accepts both cases:

* The class is omitted from the output
* The class appears with 0.00% coverage.

Commits
-------

a3831dc0f2 [PhpUnitBridge] Adjust output parsing for PHPUnit 9.3.
99c98bd716 [PhpUnitBridge] CoverageListenerTrait update for PHPUnit 8.5/9.x
2020-09-05 19:07:18 +02:00
Fabien Potencier
ede0a12247 minor #38072 [Intl] Skip test cases that produce a TypeError on php 8 (derrabus)
This PR was merged into the 3.4 branch.

Discussion
----------

[Intl] Skip test cases that produce a TypeError on php 8

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

On php 8, `NumberFormatter::setAttribute()` will throw a type error if the provided value is not of type `int|float`. This is why I'm skipping the corresponding tests for now. Alternatively, we could check for the PHP version in Symfony's implementation of that class and throw the `TypeError` as well, if we're on php 8. But since this is a breaking change, I'm was unsure if I sould go that way.

Commits
-------

7f1055b97c [Intl] Skip test cases that produce a TypeError on php 8.
2020-09-05 19:05:54 +02:00
Fabien Potencier
44dc0cdf55 minor #38070 [Validator] Add Bosnian (BS) translation (tambait)
This PR was merged into the 3.4 branch.

Discussion
----------

[Validator] Add Bosnian (BS) translation

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

<!--
Replace this notice by a short README for your feature/bugfix. This will help people
understand your PR and can be used as a start for the documentation.

Additionally (see https://symfony.com/releases):
 - Always add tests and ensure they pass.
 - Never break backward compatibility (see https://symfony.com/bc).
 - Bug fixes must be submitted against the lowest maintained branch where they apply
   (lowest branches are regularly merged to upper ones so they get the fixes too.)
 - Features and deprecations must be submitted against branch master.
-->

Commits
-------

dd44563004 add bosnian (bs) translation
2020-09-05 18:59:37 +02:00
Alexander M. Turek
7f1055b97c [Intl] Skip test cases that produce a TypeError on php 8. 2020-09-05 18:44:57 +02:00
Alexander M. Turek
a3831dc0f2 [PhpUnitBridge] Adjust output parsing for PHPUnit 9.3. 2020-09-05 18:24:06 +02:00
Alexey Kopytko
99c98bd716 [PhpUnitBridge] CoverageListenerTrait update for PHPUnit 8.5/9.x 2020-09-05 18:24:06 +02:00
ivan
dd44563004 add bosnian (bs) translation 2020-09-05 17:33:22 +02:00
Fabien Potencier
4ab612cad9 feature #37706 [Validator] Debug validator command (loic425, fabpot)
This PR was merged into the 5.2-dev branch.

Discussion
----------

[Validator] Debug validator command

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       |
| License       | MIT
| Doc PR        | symfony/symfony-docs#... <!-- required for new features -->
<!--
Replace this notice by a short README for your feature/bugfix. This will help people
understand your PR and can be used as a start for the documentation.

Additionally (see https://symfony.com/releases):
 - Always add tests and ensure they pass.
 - Never break backward compatibility (see https://symfony.com/bc).
 - Bug fixes must be submitted against the lowest maintained branch where they apply
   (lowest branches are regularly merged to upper ones so they get the fixes too.)
 - Features and deprecations must be submitted against branch master.
-->

<img width="891" alt="help" src="https://user-images.githubusercontent.com/8329789/88856285-8281ee00-d1f4-11ea-8395-6e6a4b8e4e2e.png">
<img width="945" alt="CustomerAddress" src="https://user-images.githubusercontent.com/8329789/89049509-a9a20200-d351-11ea-89cf-75e11f805aea.png">
<img width="1353" alt="Customer" src="https://user-images.githubusercontent.com/8329789/89049525-b161a680-d351-11ea-99d5-6c2ede337609.png">

Commits
-------

6ec54c7337 Fix Composer constraints for tests
5dd85e4371 [Validator] Debug validator command
2020-09-05 16:48:54 +02:00
Fabien Potencier
6ec54c7337 Fix Composer constraints for tests 2020-09-05 16:39:15 +02:00
Loic Fremont
5dd85e4371 [Validator] Debug validator command 2020-09-05 16:18:05 +02:00
Fabien Potencier
4222a72ee8 bug #38062 [DI] fix generating preload file when cache_dir is outside project_dir (nicolas-grekas)
This PR was merged into the 4.4 branch.

Discussion
----------

[DI] fix generating preload file when cache_dir is outside project_dir

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

Commits
-------

02db8e1523 [DI] fix generating preload file when cache_dir is outside project_dir
2020-09-04 18:14:00 +02:00
Nicolas Grekas
02db8e1523 [DI] fix generating preload file when cache_dir is outside project_dir 2020-09-04 16:11:41 +02:00
Fabien Potencier
da73be818b bug #38059 [Cache] Fix CacheCollectorPass with decorated cache pools (shyim)
This PR was merged into the 4.4 branch.

Discussion
----------

[Cache] Fix CacheCollectorPass with decorated cache pools

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

The `getDefinition` call in `addToCollector` does not work when the service is decorated. Also instances will be added with the decoration name. This looks weird in the profiler. I have changed it to prefer the attribute name.

Before:
![image](https://user-images.githubusercontent.com/6224096/92225243-3be27c00-eea3-11ea-8bd5-2ae69212e658.png)

After: (`\Shopware\Storefront\Framework\Cache\CacheDecorator` did go into `cache.object`)
![image](https://user-images.githubusercontent.com/6224096/92225284-47ce3e00-eea3-11ea-885f-cdba95b89302.png)

Commits
-------

973442759c Fix CacheCollectorPass with decorated cache pools
2020-09-04 14:47:27 +02:00
Soner Sayakci
973442759c
Fix CacheCollectorPass with decorated cache pools 2020-09-04 14:31:16 +02:00
Fabien Potencier
a19f91ad69 bug #38054 [PhpUnitBridge] CoverageListenerTrait update for PHPUnit 8.5/9.x (sanmai)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[PhpUnitBridge] CoverageListenerTrait update for PHPUnit 8.5/9.x

Updated to use `PHPUnit\Util\Annotation\Registry` and related classes.

Fixes #37637

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

- [x] Fixes the issue under PHPUnit 8.5+
- [ ] Tests TBD

If this is a sensible approach, I will try to add a test for this addition.

Commits
-------

5f83811002 [PhpUnitBridge] CoverageListenerTrait update for PHPUnit 8.5/9.x
2020-09-04 13:30:09 +02:00
Alexey Kopytko
5f83811002 [PhpUnitBridge] CoverageListenerTrait update for PHPUnit 8.5/9.x 2020-09-04 13:30:02 +02:00
Fabien Potencier
9460894ae2 bug #38049 [Debug] Parse "x not found" errors correctly on php 8 (derrabus)
This PR was merged into the 3.4 branch.

Discussion
----------

[Debug] Parse "x not found" errors correctly on php 8

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

PHP 8 uses double quotes instead of single ones in error messages. This PR teaches `ClassNotFoundFatalErrorHandler` to parse the new format.

Depends on composer/composer#9183

Commits
-------

275496a1f4 [Debug] Parse "x not found" errors correctly on php 8.
2020-09-04 13:29:01 +02:00
Fabien Potencier
4482fcf28d bug #38041 [PropertyInfo] Fix typed collections in PHP 7.4 (ndench)
This PR was merged into the 4.4 branch.

Discussion
----------

[PropertyInfo] Fix typed collections in PHP 7.4

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

#37971 introduced support for typed properties in PHP 7.4, however by short circuiting the `getTypes()` method, typed collections are returned as `Type::BUILTIN_TYPE_ARRAY` without a proper collection type. If running on PHP < 7.4, the `getMutator()` method would be called which would extract the collection type from the getter/setter or adder/remover.

I updated the typedPropertiesTest to cover this case.

Commits
-------

282ed2850c [PropertyInfo] Fix typed collections in PHP 7.4
2020-09-04 07:32:57 +02:00
Fabien Potencier
c2522fa325 feature #38052 Increase HttpBrowser::getHeaders() visibility to protected (iansltx)
This PR was merged into the 5.2-dev branch.

Discussion
----------

Increase HttpBrowser::getHeaders() visibility to protected

Resolves symfony/symfony#38051

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| Deprecations? | no
| Tickets       | Fix #38051
| License       | MIT
| Doc PR        | symfony/symfony-docs#... <!-- required for new features -->

Increases visibility to allow for oddball header overrides; see #38051 for more detail.

If this looks good, let me know if this is worth adding docs/changelog entries and I'll do so.

Commits
-------

3d75ab515f Increase HttpBrowser::getHeaders() visibility to protected
2020-09-04 07:30:17 +02:00
Fabien Potencier
067dc2ddbb minor #38053 [Form] Remove invalid instantiation declaration (siganushka)
This PR was submitted for the master branch but it was merged into the 4.4 branch instead.

Discussion
----------

[Form] Remove invalid instantiation declaration

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

Remove invalid instantiation declaration

Commits
-------

6e17099f7a Remove invalid instantiation declaration
2020-09-04 07:27:15 +02:00
siganushka
6e17099f7a Remove invalid instantiation declaration 2020-09-04 07:27:08 +02:00
Fabien Potencier
05bdfc91c8 feature #36727 [Messenger] Add option to prevent Redis from deleting messages on rejection (Steveb-p)
This PR was merged into the 5.2-dev branch.

Discussion
----------

[Messenger] Add option to prevent Redis from deleting messages on rejection

~Unless `delete_after_ack` configuration is set to `true`.~

Introduces `delete_after_reject` configuration property.

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | yes
| New feature?  | ~no~ yes (introduces config property)
| Deprecations? | no
| Tickets       | Fix #36619
| License       | MIT

> Redis Messenger transport deletes messages when rejecting, causing other consumers / applications to be unable to reach that message.

> This affects primarily cases where Messenger component is used to read/write with other, third party applications.

Commits
-------

135c6504f1 [Messenger] Add option to prevent Redis from deleting messages on rejection
2020-09-04 07:22:15 +02:00
Ian Littman
3d75ab515f
Increase HttpBrowser::getHeaders() visibility to protected
Resolves symfony/symfony#38051
2020-09-03 22:08:06 -05:00
Alexander M. Turek
275496a1f4 [Debug] Parse "x not found" errors correctly on php 8. 2020-09-04 00:12:04 +02:00
Paweł Niedzielski
135c6504f1 [Messenger] Add option to prevent Redis from deleting messages on rejection 2020-09-03 22:33:02 +02:00
Nicolas Grekas
174d91c23b feature #37678 [DoctrineBridge] Ulid and Uuid as Doctrine Types (gennadigennadigennadi)
This PR was merged into the 5.2-dev branch.

Discussion
----------

[DoctrineBridge] Ulid and Uuid as Doctrine Types

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | #36102 <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License       | MIT

This Types Implementations are basically copies from https://github.com/ramsey/uuid-doctrine, with minor tweaks to use Symfonys Uid classes.

I am not done yet. I'm going to implement some UnitTests and I also do need to add the Changelog Entries.

And I do ask my self if the Types should be registered automatically (with the recipe?), cause it would collide with Ramseys uuids implementation.

Commits
-------

f44fa34098 [DoctrineBridge] Ulid and Uuid as Doctrine Types
2020-09-03 21:52:15 +02:00
Gennadi Janzen
f44fa34098 [DoctrineBridge] Ulid and Uuid as Doctrine Types 2020-09-03 21:51:16 +02:00
Fabien Potencier
4c96577d4d minor #38044 Add tests for translated error messages of json authentication (Malte Schlüter)
This PR was merged into the 5.2-dev branch.

Discussion
----------

Add tests for translated error messages of json authentication

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

In PR #38037 i added the translator to the json authenticator but there are some tests missing. I added some now.

Commits
-------

b50fc19af0 Add tests for translated error messages of json authentication
2020-09-03 17:07:11 +02:00
Malte Schlüter
b50fc19af0 Add tests for translated error messages of json authentication 2020-09-03 13:33:24 +02:00
Nicolas Grekas
e59ccc5cc0 Merge branch '5.1'
* 5.1:
  [SecurityBundle] fix tests
  relax some test assertions
2020-09-03 13:20:29 +02:00
Nicolas Grekas
b2609c4bae [SecurityBundle] fix tests 2020-09-03 13:19:25 +02:00
Christian Flothmann
a110caa581 Merge branch '4.4' into 5.1
* 4.4:
  relax some test assertions
2020-09-03 12:43:26 +02:00
Christian Flothmann
fdcef0c625 minor #38045 [FrameworkBundle] relax some test assertions (xabbuh)
This PR was merged into the 4.4 branch.

Discussion
----------

[FrameworkBundle] relax some test assertions

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

Commits
-------

473e2933f0 relax some test assertions
2020-09-03 12:20:37 +02:00
Christian Flothmann
473e2933f0 relax some test assertions 2020-09-03 11:25:00 +02:00
Christian Flothmann
7ce234a34b Merge branch '5.1' into master
* 5.1:
  fix tests
2020-09-03 10:41:50 +02:00
Christian Flothmann
7bfff76fae minor #38043 [PhpUnitBridge] fix tests (xabbuh)
This PR was merged into the 5.1 branch.

Discussion
----------

[PhpUnitBridge] fix tests

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

Commits
-------

0a4cb62677 fix tests
2020-09-03 10:41:28 +02:00
Christian Flothmann
0a4cb62677 fix tests 2020-09-03 10:04:57 +02:00
Fabien Potencier
b094d4304e feature #38037 Translate failure messages of json authentication (Malte Schlüter)
This PR was squashed before being merged into the 5.2-dev branch.

Discussion
----------

Translate failure messages of json authentication

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

Until now the failure messages of the json authentication were not translated. I'm not sure if it's a bug or a new feature. The changes shouldn't be a BC.

Commits
-------

7684663818 Translate failure messages of json authentication
2020-09-03 09:36:03 +02:00
Malte Schlüter
7684663818 Translate failure messages of json authentication 2020-09-03 09:35:53 +02:00
Nathan Dench
282ed2850c [PropertyInfo] Fix typed collections in PHP 7.4 2020-09-03 10:26:19 +10:00
Nicolas Grekas
4ee85e8e3b Merge branch '5.1'
* 5.1:
  Enable "native_constant_invocation" CS rule
  Make AbstractPhpFileCacheWarmer public
  Fix CS
  Add a warning comment on ldap empty password
  Bump Symfony version to 4.4.14
  Update VERSION for 4.4.13
  Update CHANGELOG for 4.4.13
  [PhpunitBridge] Fix deprecation type detection
2020-09-02 18:27:44 +02:00
Nicolas Grekas
034602699e Merge branch '4.4' into 5.1
* 4.4:
  Enable "native_constant_invocation" CS rule
  Make AbstractPhpFileCacheWarmer public
2020-09-02 18:23:27 +02:00
Nicolas Grekas
2e8ca94fb8 Merge remote-tracking branch 'origin/4.4' into 5.1
* origin/4.4:
  Fix CS
  Add a warning comment on ldap empty password
  Bump Symfony version to 4.4.14
  Update VERSION for 4.4.13
  Update CHANGELOG for 4.4.13
  [PhpunitBridge] Fix deprecation type detection
2020-09-02 18:21:51 +02:00
Fabien Potencier
01577db355 minor #38038 [Security] Add some missing CHANGELOG entries (chalasr)
This PR was merged into the 5.2-dev branch.

Discussion
----------

[Security] Add some missing CHANGELOG entries

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

Mentions #37337 in CHANGELOG files.

Commits
-------

46ce480801 [Security] Add some missing CHANGELOG entries
2020-09-02 18:15:42 +02:00