Commit Graph

53826 Commits

Author SHA1 Message Date
Jérémy Derussé
3bd24c5e07
[Messenger] Fix opcache preload with alias classes 2021-06-05 00:34:10 +02:00
Nicolas Grekas
5e609da601 Fix KernelBrowser 2021-06-03 15:58:19 +02:00
Nicolas Grekas
b004f3bf3b fix 2021-06-03 15:41:38 +02:00
Nicolas Grekas
c2f449275b bug #41218 [DependencyInjection] Update loader’s directory when calling ContainerConfigurator::withPath (MatTheCat)
This PR was merged into the 5.2 branch.

Discussion
----------

[DependencyInjection] Update loader’s directory when calling ContainerConfigurator::withPath

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

Commits
-------

e973541baf Update loader’s directory when calling ContainerConfigurator::withPath
2021-06-03 15:19:26 +02:00
Nicolas Grekas
26a646896d bug #41505 [FrameworkBundle] fix KernelBrowser::loginUser with a stateless firewall (dunglas)
This PR was merged into the 5.2 branch.

Discussion
----------

[FrameworkBundle] fix KernelBrowser::loginUser with a stateless firewall

| 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       | n/a
| License       | MIT
| Doc PR        | todo?

Currently, `KernelBrowser::loginUser()` doesn't work with stateless firewalls (Basic HTTP, JWT etc) and fails if the session is disabled (which is frequent when creating web APIs, and when using stateless firewalls). This PR fixes the problem.

Commits
-------

2bfe6f25a8 [FrameworkBundle] fix KernelBrowser::loginUser with a stateless firewall
2021-06-03 14:03:23 +02:00
Nicolas Grekas
1ec9a83886 bug #41509 [SecurityBundle] Link UserProviderListener to correct firewall dispatcher (Matth--)
This PR was merged into the 5.2 branch.

Discussion
----------

[SecurityBundle] Link UserProviderListener to correct firewall dispatcher

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

When using the new AuthenticationManager, an incorrect UserProvider could be attached to the UserBadge when having multiple providers defined in `security.yaml`.

The `UserProviderListener` was tagged to the global event dispatcher instead of the dispatcher for the specific firewall.

Commits
-------

46bdeb8507 [SecurityBundle] Link UserProviderListener to correct firewall dispatcher
2021-06-03 14:02:21 +02:00
Nicolas Grekas
4e0edbae7c Merge branch '4.4' into 5.2
* 4.4:
  [Console] Escape synopsis output
  Document null support in NumberToLocalizedStringTransformer
2021-06-03 14:00:06 +02:00
Nicolas Grekas
d7524e6842 bug #41386 [Console] Escape synopsis output (jschaedl)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[Console] Escape synopsis output

| 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 #41315 <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License       | MIT
| Doc PR        | symfony/symfony-docs#... <!-- required for new features -->

Commits
-------

960cb520df [Console] Escape synopsis output
2021-06-03 13:51:23 +02:00
Jan Schädlich
960cb520df [Console] Escape synopsis output 2021-06-03 13:51:17 +02:00
Nicolas Grekas
f143c8fd1a minor #41453 [Form] Document null support in NumberToLocalizedStringTransformer (mbabker)
This PR was merged into the 4.4 branch.

Discussion
----------

[Form] Document null support in NumberToLocalizedStringTransformer

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

`Symfony\Component\Form\Extension\Core\DataTransformer\NumberToLocalizedStringTransformer` explicitly checks for and returns nulls but these aren't documented in the class' doc blocks, which causes static analysis tools to report a false positive when checking for these null values elsewhere.  This adds the missing null types to the doc blocks.

Commits
-------

1fda3d0284 Document null support in NumberToLocalizedStringTransformer
2021-06-03 13:48:34 +02:00
Matthieu Calie
46bdeb8507 [SecurityBundle] Link UserProviderListener to correct firewall dispatcher 2021-06-02 21:06:22 +02:00
Fabien Potencier
2f29a3dd24 Merge branch '4.4' into 5.2
* 4.4:
  [HttpFoundation] Add ReturnTypeWillChange to SessionHandlers
2021-06-02 11:31:45 +02:00
Kévin Dunglas
2bfe6f25a8
[FrameworkBundle] fix KernelBrowser::loginUser with a stateless firewall 2021-06-01 22:46:48 +02:00
Alexander M. Turek
b439213767 bug #41495 [HttpFoundation] Add ReturnTypeWillChange to SessionHandlers (nikic)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[HttpFoundation] Add ReturnTypeWillChange to SessionHandlers

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | maybe?
| Tickets       |
| License       | MIT
| Doc PR        |
<!--
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 5.x.
 - Changelog entry should follow https://symfony.com/doc/current/contributing/code/conventions.html#writing-a-changelog-entry
-->

This adds `#[ReturnTypeWillChange]` annotations for `SessionHandler` methods to satisfy the [Tentative Return Types RFC](https://wiki.php.net/rfc/internal_method_return_types). This doesn't cover all classes (e.g. `MockPdo` is also affected), just the ones relating to `SessionHandler` etc.

It's worth noting that the `gc()` method is spec'd as `int|false` on our side, so I've updated type hints accordingly. The method used to return bool prior to PHP 7.1.

Commits
-------

8954b4f922 [HttpFoundation] Add ReturnTypeWillChange to SessionHandlers
2021-06-01 21:14:33 +02:00
Nikita Popov
8954b4f922 [HttpFoundation] Add ReturnTypeWillChange to SessionHandlers 2021-06-01 21:14:25 +02:00
Alexander M. Turek
0f4cbc0917 Merge branch '4.4' into 5.2
* 4.4:
  Bump Symfony version to 4.4.26
  Update VERSION for 4.4.25
  Update CONTRIBUTORS for 4.4.25
  Update CHANGELOG for 4.4.25
2021-06-01 20:46:09 +02:00
Fabien Potencier
0d3befa984 Bump Symfony version to 5.2.11 2021-06-01 12:21:53 +02:00
Fabien Potencier
dbfafadaab
Merge pull request #41488 from fabpot/release-5.2.10
released v5.2.10
2021-06-01 11:28:46 +02:00
Fabien Potencier
b8908bcb43 Update VERSION for 5.2.10 2021-06-01 11:28:31 +02:00
Fabien Potencier
e715f2ca86 Update CHANGELOG for 5.2.10 2021-06-01 11:28:26 +02:00
Fabien Potencier
ca61cd64b1 Bump Symfony version to 4.4.26 2021-06-01 11:02:47 +02:00
Nicolas Grekas
8b570e1b22 cs fix 2021-06-01 09:40:53 +02:00
Fabien Potencier
c71e9ba222
Merge pull request #41477 from fabpot/release-4.4.25
released v4.4.25
2021-06-01 09:12:23 +02:00
Fabien Potencier
da21ba31cf Update VERSION for 4.4.25 2021-06-01 09:12:08 +02:00
Fabien Potencier
e54bddeaea Update CONTRIBUTORS for 4.4.25 2021-06-01 09:12:02 +02:00
Fabien Potencier
2213e6ad85 Update CHANGELOG for 4.4.25 2021-06-01 09:11:35 +02:00
Michael Babker
1fda3d0284
Document null support in NumberToLocalizedStringTransformer 2021-05-30 11:06:17 -05:00
MatTheCat
e973541baf
Update loader’s directory when calling ContainerConfigurator::withPath 2021-05-27 19:30:59 +02:00
Nicolas Grekas
4114326f9c Merge branch '4.4' into 5.2
* 4.4:
  [Form] Use !isset for checks cause this doesn't falsely include 0
  [Mailer] Fix typo in README
  sync ./phpunit in all branches
2021-05-27 14:55:18 +02:00
Nicolas Grekas
9b89b2ec04 bug #41000 [Form] Use !isset for checks cause this doesn't falsely include 0 (Kai Dederichs)
This PR was submitted for the 5.2 branch but it was squashed and merged into the 4.4 branch instead.

Discussion
----------

[Form] Use !isset for checks cause this doesn't falsely include 0

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

By using isset 0 won't falsely included anymore

Commits
-------

cd541c5a63 [Form] Use !isset for checks cause this doesn't falsely include 0
2021-05-27 14:54:21 +02:00
Kai Dederichs
cd541c5a63 [Form] Use !isset for checks cause this doesn't falsely include 0 2021-05-27 14:54:13 +02:00
Nicolas Grekas
11a88370e3 minor #41403 [Mailer] Fix typo in README (W0rma)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[Mailer] Fix typo in README

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

Commits
-------

14f2a2974c [Mailer] Fix typo in README
2021-05-27 14:49:44 +02:00
Dieter
14f2a2974c [Mailer] Fix typo in README 2021-05-27 14:49:37 +02:00
Nicolas Grekas
747e2ac886 sync ./phpunit in all branches 2021-05-27 14:44:44 +02:00
Nicolas Grekas
6f461b04d3 Merge branch '4.4' into 5.2
* 4.4:
  [VarDumper] fix tests
2021-05-27 12:48:07 +02:00
Nicolas Grekas
ba5899362b minor #41418 [VarDumper] fix tests (nicolas-grekas)
This PR was submitted for the 6.0 branch but it was merged into the 4.4 branch instead.

Discussion
----------

[VarDumper] fix tests

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

Fixing VarDumper on appveyor hopefully.

Commits
-------

bdf3222c60 [VarDumper] fix tests
2021-05-27 11:48:39 +02:00
Nicolas Grekas
bdf3222c60 [VarDumper] fix tests 2021-05-27 11:48:32 +02:00
Nicolas Grekas
536266cea3 [Intl] fix bad merge 2021-05-27 08:39:54 +02:00
Nicolas Grekas
fff1fdee1f Remove notice about reverted behavior 2021-05-26 19:55:59 +02:00
Nicolas Grekas
9c8d237771 Merge branch '4.4' into 5.2
* 4.4:
  [PhpUnitBridge] fix PHP version check
  keep container.service_subscriber tag on the decorated definition
2021-05-26 19:55:25 +02:00
Nicolas Grekas
519d348b4a bug #41407 [DependencyInjection] keep container.service_subscriber tag on the decorated definition (xabbuh)
This PR was merged into the 4.4 branch.

Discussion
----------

[DependencyInjection] keep container.service_subscriber tag on the decorated definition

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

Commits
-------

b917fafc8d keep container.service_subscriber tag on the decorated definition
2021-05-26 19:54:16 +02:00
Nicolas Grekas
42e4736e09 [PhpUnitBridge] fix PHP version check 2021-05-26 19:49:37 +02:00
Nicolas Grekas
b581c13f83 Merge branch '4.4' into 5.2
* 4.4:
  Fix CS in README files
2021-05-26 19:40:38 +02:00
Nicolas Grekas
ce7d3c41ae Fix CS in README files 2021-05-26 19:39:37 +02:00
Nicolas Grekas
4e3912e050 Merge branch '4.4' into 5.2
* 4.4:
  [HttpKernel] Fixes tests for PHP7.4+
  [Filesystem] fix readlink for Windows
2021-05-26 19:33:56 +02:00
Nicolas Grekas
54bee29572 bug #40866 [Filesystem] fix readlink() for Windows (a1812)
This PR was merged into the 4.4 branch.

Discussion
----------

[Filesystem] fix readlink() for Windows

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

**How to reproduce**

Windows 10.0.19042.928, PHP 8.0.3, PHPUnit 9.5.4
run as Administrator
C:\php\php.exe ./phpunit --bootstrap ./vendor/autoload.php --configuration ./phpunit.xml.dist ./src/Symfony/Component/Filesystem/Tests

There were 2 failures:

1) Symfony\Component\Filesystem\Tests\FilesystemTest::testRemoveCleansInvalidLinks
Failed asserting that 'C:\Users\albat\AppData\Local\Temp\1618836823.005.2057903605\directory\dir\' is false.

D:\Z__PHP_PROJECT\symfony\src\Symfony\Component\Filesystem\Tests\FilesystemTest.php:379

2) Symfony\Component\Filesystem\Tests\FilesystemTest::testReadAbsoluteLink
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'C:\Users\albat\AppData\Local\Temp\1618836823.1681.131301953\dir\link'
+'C:\Users\albat\AppData\Local\Temp\1618836823.1681.131301953\file'

Commits
-------

f1b95d3c93 [Filesystem] fix readlink for Windows
2021-05-26 19:30:55 +02:00
Nicolas Grekas
12030e5622 minor #41412 [HttpKernel] Fixes file_get_content in HttpCache's Store for PHP7.4+ (0x346e3730)
This PR was merged into the 4.4 branch.

Discussion
----------

[HttpKernel] Fixes file_get_content in HttpCache's Store for PHP7.4+

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

While trying to get 6.0 branch tests green, I encountered an error on multiple HttpKernel tests.
After investigating, it comes from the file_get_contents in the load method of the Store class from HttpCache. For obscure reasons, some calls are in errors and the content can't be read for "permission denied".
This is happening only on PHP 7.4.0+ (and that explains why the tests are green on the branch 5.4 as it runs php 7.2), adding the `@` error suppressor fixes this.

Commits
-------

c3ac11cc64 [HttpKernel] Fixes tests for PHP7.4+
2021-05-26 19:22:19 +02:00
Nicolas Grekas
7220998a39 Merge branch '4.4' into 5.2
* 4.4:
  Fix markdown
2021-05-26 14:52:38 +02:00
Oskar Stark
26d682fd96 minor #41415 Fix markdown in README files (OskarStark)
This PR was merged into the 4.4 branch.

Discussion
----------

Fix markdown in README files

| 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 -->
| Tickets       | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License       | MIT
| Doc PR        | symfony/symfony-docs#... <!-- required for new features -->

I would up merge it and fix the upper branches while upmerging or via separate PR's, whatever is prefered

Commits
-------

ad0890c604 Fix markdown
2021-05-26 13:45:23 +02:00
Oskar Stark
ad0890c604 Fix markdown 2021-05-26 13:20:16 +02:00