Skip to content

Commit edbb23a

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

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
@@ -225,7 +225,7 @@ The ``getValue()`` method can also use the magic ``__get()`` method::
225225
Magic ``__call()`` Method
226226
~~~~~~~~~~~~~~~~~~~~~~~~~
227227

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

231231
// ...

console.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,16 @@ call ``setAutoExit(false)`` on it to get the command result in ``CommandTester``
403403
not dispatched. If you need to test those events, use the
404404
:class:`Symfony\\Component\\Console\\Tester\\ApplicationTester` instead.
405405

406+
.. caution::
407+
408+
When testing commands using the :class:`Symfony\\Component\\Console\\Tester\\ApplicationTester`
409+
class, don't forget to disable the auto exit flag::
410+
411+
$application = new Application();
412+
$application->setAutoExit(false);
413+
414+
$tester = new ApplicationTester($application);
415+
406416
.. note::
407417

408418
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)