diff --git a/bundles/best_practices.rst b/bundles/best_practices.rst index 5f0259e074e..1597b5a26ee 100644 --- a/bundles/best_practices.rst +++ b/bundles/best_practices.rst @@ -204,7 +204,7 @@ A bundle should at least test: * All supported major Symfony versions (e.g. both ``6.4`` and ``7.x`` if support is claimed for both). -Thus, a bundle supporting PHP 7.4, 8.3 and 8.4, and Symfony 6.4 and 7.x should +Therefore, a bundle supporting PHP 7.4, 8.3 and 8.4, and Symfony 6.4 and 7.x should have at least this test matrix: =========== =============== =================== diff --git a/components/dependency_injection.rst b/components/dependency_injection.rst index d146f553a0c..29918556dcb 100644 --- a/components/dependency_injection.rst +++ b/components/dependency_injection.rst @@ -194,7 +194,7 @@ These are all the possible behaviors: Avoiding your Code Becoming Dependent on the Container ------------------------------------------------------ -Whilst you can retrieve services from the container directly it is best +While you can retrieve services from the container directly it is best to minimize this. For example, in the ``NewsletterManager`` you injected the ``mailer`` service in rather than asking for it from the container. You could have injected the container in and retrieved the ``mailer`` service diff --git a/components/dependency_injection/compilation.rst b/components/dependency_injection/compilation.rst index 7db22a68d5f..d0b89496c63 100644 --- a/components/dependency_injection/compilation.rst +++ b/components/dependency_injection/compilation.rst @@ -537,7 +537,7 @@ way further optimizes how the services are created by the container. In the above example you will need to delete the cached container file whenever you make any changes. Adding a check for a variable that determines if you are in debug mode allows you to keep the speed of the cached container in -production but getting an up to date configuration whilst developing your +production but getting an up to date configuration while developing your application:: // ... diff --git a/components/messenger.rst b/components/messenger.rst index fe3d2926714..063e5e3284b 100644 --- a/components/messenger.rst +++ b/components/messenger.rst @@ -183,8 +183,8 @@ Here are some important envelope stamps that are shipped with the Symfony Messen :class:`Symfony\\Component\\Messenger\\Transport\\Serialization\\Normalizer\\FlattenExceptionNormalizer` which helps error reporting in the Messenger context. -Instead of dealing directly with the messages in the middleware you receive the envelope. -Hence you can inspect the envelope content and its stamps, or add any:: +Instead of dealing directly with the messages in the middleware, you receive the envelope. +Therefore, you can inspect the envelope content and its stamps, or add any:: use App\Message\Stamp\AnotherStamp; use Symfony\Component\Messenger\Envelope; diff --git a/components/process.rst b/components/process.rst index 10e7e0777af..ffb6a5867c6 100644 --- a/components/process.rst +++ b/components/process.rst @@ -261,7 +261,7 @@ are done doing other stuff:: after the request is sent, but to use a job queue instead. :method:`Symfony\\Component\\Process\\Process::wait` takes one optional argument: -a callback that is called repeatedly whilst the process is still running, passing +a callback that is called repeatedly while the process is still running, passing in the output and its type:: $process = new Process(['ls', '-lsa']); diff --git a/components/var_dumper.rst b/components/var_dumper.rst index cfc57140b52..88922a5b724 100644 --- a/components/var_dumper.rst +++ b/components/var_dumper.rst @@ -238,7 +238,7 @@ Choosing between both is mostly a matter of personal taste, still: * ``{% dump foo.bar %}`` is the way to go when the original template output shall not be modified: variables are not dumped inline, but in the web debug toolbar; -* on the contrary, ``{{ dump(foo.bar) }}`` dumps inline and thus may or not +* on the contrary, ``{{ dump(foo.bar) }}`` dumps inline and may or not be suited to your use case (e.g. you shouldn't use it in an HTML attribute or a ``