Skip to content

Commit 5273886

Browse files
committed
Merge branch '6.4' into 7.0
* 6.4: [Uid] v7 is the new default version Minor Fix incorrect placement of is_empty_callback [Tests] Update PHPUnit documentation links Mention Rector in the upgrading articles Update custom_authenticator.rst Remove incomplete duplicate
2 parents 4ce3528 + 4019756 commit 5273886

File tree

11 files changed

+35
-26
lines changed

11 files changed

+35
-26
lines changed

best_practices.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,4 +454,4 @@ you must set up a redirection.
454454
.. _`feature toggles`: https://en.wikipedia.org/wiki/Feature_toggle
455455
.. _`smoke testing`: https://en.wikipedia.org/wiki/Smoke_testing_(software)
456456
.. _`Webpack`: https://webpack.js.org/
457-
.. _`PHPUnit data providers`: https://docs.phpunit.de/en/9.5/writing-tests-for-phpunit.html#data-providers
457+
.. _`PHPUnit data providers`: https://docs.phpunit.de/en/9.6/writing-tests-for-phpunit.html#data-providers

components/phpunit_bridge.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1053,11 +1053,11 @@ not find the SUT:
10531053
.. _`PHPUnit`: https://phpunit.de
10541054
.. _`PHPUnit event listener`: https://docs.phpunit.de/en/10.0/extending-phpunit.html#phpunit-s-event-system
10551055
.. _`ErrorHandler component`: https://github.com/symfony/error-handler
1056-
.. _`PHPUnit's assertStringMatchesFormat()`: https://docs.phpunit.de/en/9.5/assertions.html#assertstringmatchesformat
1056+
.. _`PHPUnit's assertStringMatchesFormat()`: https://docs.phpunit.de/en/9.6/assertions.html#assertstringmatchesformat
10571057
.. _`PHP error handler`: https://www.php.net/manual/en/book.errorfunc.php
1058-
.. _`environment variable`: https://docs.phpunit.de/en/9.5/configuration.html#the-env-element
1058+
.. _`environment variable`: https://docs.phpunit.de/en/9.6/configuration.html#the-env-element
10591059
.. _`@-silencing operator`: https://www.php.net/manual/en/language.operators.errorcontrol.php
10601060
.. _`Travis CI`: https://travis-ci.org/
1061-
.. _`test listener`: https://docs.phpunit.de/en/9.5/configuration.html#the-extensions-element
1062-
.. _`@covers`: https://docs.phpunit.de/en/9.5/annotations.html#covers
1061+
.. _`test listener`: https://docs.phpunit.de/en/9.6/configuration.html#the-extensions-element
1062+
.. _`@covers`: https://docs.phpunit.de/en/9.6/annotations.html#covers
10631063
.. _`PHP namespace resolutions rules`: https://www.php.net/manual/en/language.namespaces.rules.php

components/uid.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ configure the behavior of the factory using configuration files::
9494
# config/packages/uid.yaml
9595
framework:
9696
uid:
97-
default_uuid_version: 6
97+
default_uuid_version: 7
9898
name_based_uuid_version: 5
9999
name_based_uuid_namespace: 6ba7b810-9dad-11d1-80b4-00c04fd430c8
100-
time_based_uuid_version: 6
100+
time_based_uuid_version: 7
101101
time_based_uuid_node: 121212121212
102102
103103
.. code-block:: xml
@@ -113,10 +113,10 @@ configure the behavior of the factory using configuration files::
113113
114114
<framework:config>
115115
<framework:uid
116-
default_uuid_version="6"
116+
default_uuid_version="7"
117117
name_based_uuid_version="5"
118118
name_based_uuid_namespace="6ba7b810-9dad-11d1-80b4-00c04fd430c8"
119-
time_based_uuid_version="6"
119+
time_based_uuid_version="7"
120120
time_based_uuid_node="121212121212"
121121
/>
122122
</framework:config>
@@ -135,10 +135,10 @@ configure the behavior of the factory using configuration files::
135135
136136
$container->extension('framework', [
137137
'uid' => [
138-
'default_uuid_version' => 6,
138+
'default_uuid_version' => 7,
139139
'name_based_uuid_version' => 5,
140140
'name_based_uuid_namespace' => '6ba7b810-9dad-11d1-80b4-00c04fd430c8',
141-
'time_based_uuid_version' => 6,
141+
'time_based_uuid_version' => 7,
142142
'time_based_uuid_node' => 121212121212,
143143
],
144144
]);
@@ -160,7 +160,7 @@ on the configuration you defined::
160160

161161
public function generate(): void
162162
{
163-
// This creates a UUID of the version given in the configuration file (v6 by default)
163+
// This creates a UUID of the version given in the configuration file (v7 by default)
164164
$uuid = $this->uuidFactory->create();
165165

166166
$nameBasedUuid = $this->uuidFactory->nameBased(/** ... */);

create_framework/unit_testing.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,6 @@ Symfony code.
212212
Now that we are confident (again) about the code we have written, we can
213213
safely think about the next batch of features we want to add to our framework.
214214

215-
.. _`PHPUnit`: https://docs.phpunit.de/en/9.5/
216-
.. _`test doubles`: https://docs.phpunit.de/en/9.5/test-doubles.html
215+
.. _`PHPUnit`: https://docs.phpunit.de/en/9.6/
216+
.. _`test doubles`: https://docs.phpunit.de/en/9.6/test-doubles.html
217217
.. _`XDebug`: https://xdebug.org/

form/unit_testing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,4 +241,4 @@ guessers using the :method:`Symfony\\Component\\Form\\Test\\FormIntegrationTestC
241241
and :method:`Symfony\\Component\\Form\\Test\\FormIntegrationTestCase::getTypeGuessers`
242242
methods.
243243

244-
.. _`PHPUnit data providers`: https://docs.phpunit.de/en/9.5/writing-tests-for-phpunit.html#data-providers
244+
.. _`PHPUnit data providers`: https://docs.phpunit.de/en/9.6/writing-tests-for-phpunit.html#data-providers

reference/constraints/UniqueEntity.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -254,11 +254,6 @@ each with a single field.
254254
``ignoreNull``
255255
~~~~~~~~~~~~~~
256256

257-
**type**: ``boolean`` **default**: ``true``
258-
259-
``ignoreNull``
260-
~~~~~~~~~~~~~~
261-
262257
**type**: ``boolean`` | ``string`` | ``array`` **default**: ``true``
263258

264259
If this option is set to ``true``, then the constraint will allow multiple

reference/forms/types/form.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,15 @@ The actual default value of this option depends on other field options:
6161
* If ``data_class`` is not set and ``compound`` is ``false``, then ``''``
6262
(empty string).
6363

64+
.. include:: /reference/forms/types/options/empty_data_description.rst.inc
65+
6466
``is_empty_callback``
6567
~~~~~~~~~~~~~~~~~~~~~
6668

6769
**type**: ``callable`` **default**: ``null``
6870

6971
This callable takes form data and returns whether value is considered empty.
7072

71-
.. include:: /reference/forms/types/options/empty_data_description.rst.inc
72-
7373
.. _reference-form-option-error-bubbling:
7474

7575
.. include:: /reference/forms/types/options/error_bubbling.rst.inc

security/custom_authenticator.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ using :ref:`the user provider <security-user-providers>`::
239239
// ...
240240

241241
return new Passport(
242-
new UserBadge($email, function (string $userIdentifier): ?User {
242+
new UserBadge($email, function (string $userIdentifier): ?UserInterface {
243243
return $this->userRepository->findOneBy(['email' => $userIdentifier]);
244244
}),
245245
$credentials

setup/upgrade_major.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@ And sometimes, the warning may come from a third-party library or bundle
5454
that you're using. If that's true, there's a good chance that those deprecations
5555
have already been updated. In that case, upgrade the library to fix them.
5656

57+
.. tip::
58+
59+
`Rector`_ is a third-party project that automates the upgrading and
60+
refactoring of PHP projects. Rector includes some rules to fix certain
61+
Symfony deprecations automatically.
62+
5763
Once all the deprecation warnings are gone, you can upgrade with a lot
5864
more confidence.
5965

@@ -310,3 +316,4 @@ Classes in the ``vendor/`` directory are always ignored.
310316
Now, you can safely allow ``^6.0`` for the Symfony dependencies.
311317

312318
.. _`PHP CS Fixer`: https://github.com/friendsofphp/php-cs-fixer
319+
.. _`Rector`: https://github.com/rectorphp/rector

setup/upgrade_minor.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,12 @@ included in the Symfony directory that describes these changes. If you follow
8484
the instructions in the document and update your code accordingly, it should be
8585
safe to update in the future.
8686

87+
.. tip::
88+
89+
`Rector`_ is a third-party project that automates the upgrading and
90+
refactoring of PHP projects. Rector includes some rules to fix certain
91+
Symfony deprecations automatically.
92+
8793
These documents can also be found in the `Symfony Repository`_.
8894

8995
.. _updating-flex-recipes:
@@ -92,3 +98,4 @@ These documents can also be found in the `Symfony Repository`_.
9298

9399
.. _`Symfony Repository`: https://github.com/symfony/symfony
94100
.. _`UPGRADE-5.4.md`: https://github.com/symfony/symfony/blob/5.4/UPGRADE-5.4.md
101+
.. _`Rector`: https://github.com/rectorphp/rector

testing.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1085,12 +1085,12 @@ Learn more
10851085

10861086
.. _`PHPUnit`: https://phpunit.de/
10871087
.. _`documentation`: https://docs.phpunit.de/
1088-
.. _`Writing Tests for PHPUnit`: https://docs.phpunit.de/en/9.5/writing-tests-for-phpunit.html
1089-
.. _`PHPUnit documentation`: https://docs.phpunit.de/en/9.5/configuration.html
1088+
.. _`Writing Tests for PHPUnit`: https://docs.phpunit.de/en/9.6/writing-tests-for-phpunit.html
1089+
.. _`PHPUnit documentation`: https://docs.phpunit.de/en/9.6/configuration.html
10901090
.. _`unit test`: https://en.wikipedia.org/wiki/Unit_testing
10911091
.. _`DAMADoctrineTestBundle`: https://github.com/dmaicher/doctrine-test-bundle
10921092
.. _`Doctrine data fixtures`: https://symfony.com/doc/current/bundles/DoctrineFixturesBundle/index.html
10931093
.. _`DoctrineFixturesBundle documentation`: https://symfony.com/doc/current/bundles/DoctrineFixturesBundle/index.html
10941094
.. _`SymfonyMakerBundle`: https://symfony.com/doc/current/bundles/SymfonyMakerBundle/index.html
1095-
.. _`PHPUnit Assertion`: https://docs.phpunit.de/en/9.5/assertions.html
1095+
.. _`PHPUnit Assertion`: https://docs.phpunit.de/en/9.6/assertions.html
10961096
.. _`section 4.1.18 of RFC 3875`: https://tools.ietf.org/html/rfc3875#section-4.1.18

0 commit comments

Comments
 (0)