Skip to content

Commit 04dc03b

Browse files
committed
minor #17076 Update upgrade_major.rst (matyo91)
This PR was merged into the 5.4 branch. Discussion ---------- Update upgrade_major.rst Seems that `SYMFONY_PATCH_TYPE_DECLARATIONS` must be used instead of `SYMFONY_DEPRECATIONS_HELPER` in sample for open source maintainers <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `6.x` for features of unreleased versions). --> Commits ------- e24abb3 Update upgrade_major.rst
2 parents f3039fb + e24abb3 commit 04dc03b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

setup/upgrade_major.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -291,10 +291,10 @@ Classes in the ``vendor/`` directory are always ignored.
291291
292292
# Add type declarations to all internal, final, tests and private methods.
293293
# Update the "php" parameter to match your minimum required PHP version
294-
$ SYMFONY_DEPRECATIONS_HELPER="force=1&php=7.4" ./vendor/bin/patch-type-declarations
294+
$ SYMFONY_PATCH_TYPE_DECLARATIONS="force=1&php=7.4" ./vendor/bin/patch-type-declarations
295295
296296
# Add PHPDoc to the leftover public and protected methods
297-
$ SYMFONY_DEPRECATIONS_HELPER="force=phpdoc&php=7.4" ./vendor/bin/patch-type-declarations
297+
$ SYMFONY_PATCH_TYPE_DECLARATIONS="force=phpdoc&php=7.4" ./vendor/bin/patch-type-declarations
298298
299299
After running the scripts, check your classes and add more ``@return``
300300
PHPDoc where they are missing. The deprecations and patch script
@@ -312,7 +312,7 @@ Classes in the ``vendor/`` directory are always ignored.
312312
.. code-block:: terminal
313313
314314
# Update the "php" parameter to match your minimum required PHP version
315-
$ SYMFONY_DEPRECATIONS_HELPER="force=2&php=7.4" ./vendor/bin/patch-type-declarations
315+
$ SYMFONY_PATCH_TYPE_DECLARATIONS="force=2&php=7.4" ./vendor/bin/patch-type-declarations
316316
317317
Now, you can safely allow ``^6.0`` for the Symfony dependencies.
318318

0 commit comments

Comments
 (0)