Skip to content

Commit 32dd2bd

Browse files
committed
Merge branch '4.4' into 5.1
* 4.4: [Console] Caution about disabling auto exit flag language tweak Replace unavailable dependency in Symfony 4
2 parents c4f7169 + 564ff55 commit 32dd2bd

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

components/property_access.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ The ``getValue()`` method can also use the magic ``__get()`` method::
218218
Magic ``__call()`` Method
219219
~~~~~~~~~~~~~~~~~~~~~~~~~
220220

221-
At last, ``getValue()`` can use the magic ``__call()`` method, but you need to
221+
Lastly, ``getValue()`` can use the magic ``__call()`` method, but you need to
222222
enable this feature by using :class:`Symfony\\Component\\PropertyAccess\\PropertyAccessorBuilder`::
223223

224224
// ...

console.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,16 @@ console::
395395
not dispatched. If you need to test those events, use the
396396
:class:`Symfony\\Component\\Console\\Tester\\ApplicationTester` instead.
397397

398+
.. caution::
399+
400+
When testing commands using the :class:`Symfony\\Component\\Console\\Tester\\ApplicationTester`
401+
class, don't forget to disable the auto exit flag::
402+
403+
$application = new Application();
404+
$application->setAutoExit(false);
405+
406+
$tester = new ApplicationTester($application);
407+
398408
.. note::
399409

400410
When using the Console component in a standalone project, use

setup/unstable_versions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Symfony version has deprecated some of its features.
6868
$ cd projects/my_project/
6969
$ git checkout -b testing_new_symfony
7070
# ... update composer.json configuration
71-
$ composer update symfony/symfony
71+
$ composer update "symfony/*"
7272
7373
# ... after testing the new Symfony version
7474
$ git checkout master

0 commit comments

Comments
 (0)