Commit Graph

38800 Commits

Author SHA1 Message Date
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
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
Alexander M. Turek
275496a1f4 [Debug] Parse "x not found" errors correctly on php 8. 2020-09-04 00:12:04 +02:00
Nicolas Grekas
4351a70637 Enable "native_constant_invocation" CS rule 2020-09-02 18:06:40 +02:00
Fabien Potencier
c653f2c2a5 minor #38036 [FrameworkBundle] Make AbstractPhpFileCacheWarmer public (ossinkine)
This PR was merged into the 3.4 branch.

Discussion
----------

[FrameworkBundle] Make AbstractPhpFileCacheWarmer public

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

The same as https://github.com/symfony/symfony/pull/37951 but with 3.4 as base branch, see https://github.com/doctrine/DoctrineBundle/pull/1196#issuecomment-683663897

cc @nicolas-grekas

Commits
-------

b82d9a2dc7 Make AbstractPhpFileCacheWarmer public
2020-09-02 16:14:27 +02:00
Gocha Ossinkine
b82d9a2dc7 Make AbstractPhpFileCacheWarmer public 2020-09-02 19:04:26 +05:00
Fabien Potencier
33cacadaf2 bug #38024 [Console] Fix undefined index for inconsistent command name definition (chalasr)
This PR was merged into the 3.4 branch.

Discussion
----------

[Console] Fix undefined index for inconsistent command name definition

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

The issue happens when the command name is set via construct/setName() and is routed via a command loader under a different name, which causes `Application::get(): Command` to return null (return type violation) with a notice. This makes it throws a proper CommandNotFoundException as expected.

Commits
-------

d59140e857 Fix undefined index for inconsistent command name definition
2020-09-02 07:48:39 +02:00
Robin Chalas
d59140e857 Fix undefined index for inconsistent command name definition 2020-09-01 20:06:56 +02:00
Fabien Potencier
f4f7683861 Bump Symfony version to 3.4.45 2020-08-31 07:58:19 +02:00
Fabien Potencier
d7f1e2c760
Merge pull request #37997 from fabpot/release-3.4.44
released v3.4.44
2020-08-31 07:54:22 +02:00
Fabien Potencier
b1e65241ca Update VERSION for 3.4.44 2020-08-31 07:53:42 +02:00
Fabien Potencier
7981fe0a04 Update CONTRIBUTORS for 3.4.44 2020-08-31 07:52:54 +02:00
Fabien Potencier
0defe5380b Update CHANGELOG for 3.4.44 2020-08-31 07:51:46 +02:00
Fabien Potencier
a430ccbcf1 minor #37952 Backport: Improve link script with rollback when using symlink (noniagriconomie)
This PR was merged into the 3.4 branch.

Discussion
----------

Backport: Improve link script with rollback when using symlink

| Q             | A
| ------------- | ---
| Branch?       | 3.4 <!-- see below -->
| 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 <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License       | MIT
| Doc PR        | N/A

Backports #37915 to 3.4.

Even if it's a new feature, it's a contributors tool that can be used for any version to try out.

Commits
-------

ab92e9f4c3 Backport: Improve link script with rollback when using symlink
2020-08-26 10:30:29 +02:00
noniagriconomie
ab92e9f4c3 Backport: Improve link script with rollback when using symlink 2020-08-26 10:20:55 +02:00
Fabien Potencier
b98f2afe5e bug #37949 [Yaml] fix more numeric cases changing in PHP 8 (xabbuh)
This PR was submitted for the master branch but it was merged into the 3.4 branch instead.

Discussion
----------

[Yaml] fix more numeric cases changing in PHP 8

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | 968ffcfa65 (r41697638)
| License       | MIT
| Doc PR        |

see also https://wiki.php.net/rfc/saner-numeric-strings

Commits
-------

7cd5106041 fix more numeric cases changing in PHP 8
2020-08-26 08:48:07 +02:00
Christian Flothmann
7cd5106041 fix more numeric cases changing in PHP 8 2020-08-26 08:32:27 +02:00
Fabien Potencier
4b3d5b6c00 bug #37921 [Yaml] account for is_numeric() behavior changes in PHP 8 (xabbuh)
This PR was merged into the 3.4 branch.

Discussion
----------

[Yaml] account for is_numeric() behavior changes in PHP 8

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

Commits
-------

05db8e0fef account for is_numeric() behavior changes in PHP 8
2020-08-23 11:03:06 +02:00
Christian Flothmann
05db8e0fef account for is_numeric() behavior changes in PHP 8 2020-08-23 09:58:10 +02:00
Fabien Potencier
86310deed2 minor #37911 [Cache] fix expected exception message on PHP 8 (xabbuh)
This PR was merged into the 3.4 branch.

Discussion
----------

[Cache] fix expected exception message on PHP 8

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

Commits
-------

2c9af570a2 fix expected exception messages on PHP 8
2020-08-22 08:24:01 +02:00
Fabien Potencier
2abf876260 bug #37912 [ExpressionLanguage] fix passing arguments to call_user_func_array() on PHP 8 (xabbuh)
This PR was merged into the 3.4 branch.

Discussion
----------

[ExpressionLanguage] fix passing arguments to call_user_func_array() on PHP 8

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

Commits
-------

a55ce7c8bb fix passing arguments to call_user_func_array() on PHP 8
2020-08-21 18:53:32 +02:00
Christian Flothmann
2c9af570a2 fix expected exception messages on PHP 8 2020-08-21 16:26:21 +02:00
Christian Flothmann
a55ce7c8bb fix passing arguments to call_user_func_array() on PHP 8 2020-08-21 16:15:51 +02:00
Fabien Potencier
12706c4ff0 minor #37910 [Filesystem] fix test on PHP 8 (xabbuh)
This PR was merged into the 3.4 branch.

Discussion
----------

[Filesystem] fix test on PHP 8

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

Commits
-------

c08178978a [Filesystem] fix test on PHP 8
2020-08-21 15:37:43 +02:00
Christian Flothmann
c08178978a [Filesystem] fix test on PHP 8 2020-08-21 14:53:49 +02:00
Fabien Potencier
c48b1d3b99 minor #37881 [Validator] Add Lithuanian translation for ISIN constraint (norkunas)
This PR was merged into the 3.4 branch.

Discussion
----------

[Validator] Add Lithuanian translation for ISIN constraint

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

Commits
-------

d652041647 [Validator] Add Lithuanian translation for ISIN constraint
2020-08-19 06:57:51 +02:00
Tomas
d652041647 [Validator] Add Lithuanian translation for ISIN constraint 2020-08-19 07:26:06 +03:00
Fabien Potencier
fcc75d9563 minor #37760 make return type correct (vladyslavstartsev)
This PR was merged into the 3.4 branch.

Discussion
----------

make return type correct

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

Since the real return type is `\ArrayIterator` AND array of `FormView` I've decided to change it. Also the other reason is that phpstan iks kind of failing because of this and I need to `assert` things in children of this class.

Commits
-------

32b5b9e1d7 make return type correct
2020-08-18 13:29:18 +02:00
Fabien Potencier
74874d5a5d minor #37871 [Validator] mark the AssertingContextualValidator class as internal (xabbuh)
This PR was merged into the 3.4 branch.

Discussion
----------

[Validator] mark the AssertingContextualValidator class as internal

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

Commits
-------

7ff0287cd6 mark the AssertingContextualValidator class as internal
2020-08-18 11:14:27 +02:00
Christian Flothmann
7ff0287cd6 mark the AssertingContextualValidator class as internal 2020-08-18 11:07:13 +02:00
Fabien Potencier
b61c87c281 minor #37856 [Filesystem] replace the deprecated assertDirectoryNotExists() method (xabbuh)
This PR was merged into the 3.4 branch.

Discussion
----------

[Filesystem] replace the deprecated assertDirectoryNotExists() method

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

Commits
-------

9fd8a940e0 replace the deprecated assertDirectoryNotExists() method
2020-08-17 16:47:20 +02:00
Fabien Potencier
6532304d27 minor #37855 [Validator] fix tests (xabbuh)
This PR was merged into the 3.4 branch.

Discussion
----------

[Validator] fix tests

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

Commits
-------

f04f507cd5 [Validator] fix tests
2020-08-17 14:26:29 +02:00
Christian Flothmann
9fd8a940e0 replace the deprecated assertDirectoryNotExists() method 2020-08-17 14:24:05 +02:00
Christian Flothmann
f04f507cd5 [Validator] fix tests 2020-08-17 14:06:24 +02:00
Fabien Potencier
58166dfd75 bug #37853 [Validator] ensure that the validator is a mock object for backwards-compatibility (xabbuh)
This PR was merged into the 3.4 branch.

Discussion
----------

[Validator] ensure that the validator is a mock object for backwards-compatibility

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

I accidentally broke the class in #37808. The validator was a mock object before (see the failing tests on the `5.1` branch).

Commits
-------

1c9b6714c7 ensure that the validator is a mock object for backwards-compatibility
2020-08-17 13:51:16 +02:00
Christian Flothmann
1c9b6714c7 ensure that the validator is a mock object for backwards-compatibility 2020-08-17 13:46:11 +02:00
Fabien Potencier
ba042b1acf Fix CS 2020-08-17 09:27:37 +02:00
Fabien Potencier
9720061e95 minor #37851 [Validator] Add Polish translation for ISIN constraint (przemyslaw-bogusz)
This PR was submitted for the master branch but it was merged into the 3.4 branch instead.

Discussion
----------

[Validator] Add Polish translation for ISIN constraint

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

Commits
-------

5fa2975b42 [Validator] Add Polish translation for ISIN constraint
2020-08-17 07:25:37 +02:00
Przemysław Bogusz
5fa2975b42 [Validator] Add Polish translation for ISIN constraint 2020-08-17 07:25:28 +02:00
Fabien Potencier
688dbd9dab bug #37845 [Serializer] Fix variadic support when using type hints (fabpot)
This PR was merged into the 3.4 branch.

Discussion
----------

[Serializer] Fix variadic support when using type hints

| Q             | A
| ------------- | ---
| Branch?       | 3.4 <!-- 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       | n/a <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License       | MIT
| Doc PR        | n/a

Commits
-------

3fffa96928 [Serializer] Fix variadic support when using type hints
2020-08-16 10:23:32 +02:00
Fabien Potencier
3fffa96928 [Serializer] Fix variadic support when using type hints 2020-08-16 10:12:12 +02:00
Fabien Potencier
30d8496921 minor #37828 use expectWarning() when possible (xabbuh)
This PR was merged into the 3.4 branch.

Discussion
----------

use expectWarning() when possible

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

Commits
-------

26dd39eb06 use expectWarning() when possible
2020-08-13 16:35:54 +02:00
Christian Flothmann
26dd39eb06 use expectWarning() when possible 2020-08-13 16:16:26 +02:00
Fabien Potencier
6972bc232d minor #37808 stop using the deprecated at() PHPUnit matcher (xabbuh)
This PR was merged into the 3.4 branch.

Discussion
----------

stop using the deprecated at() PHPUnit matcher

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

Commits
-------

850389731c stop using the deprecated at() PHPUnit matcher
2020-08-13 16:08:51 +02:00