8000 Don't use double backquotes in the comments by javiereguiluz · Pull Request #18219 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

Don't use double backquotes in the comments #18219

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/cache/adapters/array_cache_adapter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ method::
// until the current PHP process finishes)
$defaultLifetime = 0,

// if ``true``, the values saved in the cache are serialized before storing them
// if true, the values saved in the cache are serialized before storing them
$storeSerialized = true,

// the maximum lifetime (in seconds) of the entire cache (after this time, the
Expand Down
2 changes: 1 addition & 1 deletion event_dispatcher.rst
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,7 @@ could listen to the ``mailer.post_send`` event and change the method's return va
public function onMailerPostSend(AfterSendMailEvent $event)
{
$returnValue = $event->getReturnValue();
// modify the original ``$returnValue`` value
// modify the original $returnValue value

$event->setReturnValue($returnValue);
}
Expand Down
20 changes: 10 additions & 10 deletions service_container/autowiring.rst
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,8 @@ adding a service alias:
# ...

# but this fixes it!
# the ``app.rot13.transformer`` service will be injected when
# an ``App\Util\Rot13Transformer`` type-hint is detected
# the "app.rot13.transformer" service will be injected when
# an App\Util\Rot13Transformer type-hint is detected
App\Util\Rot13Transformer: '@app.rot13.transformer'

.. code-block:: xml
Expand Down Expand Up @@ -251,8 +251,8 @@ adding a service alias:
->autowire();

// but this fixes it!
// the ``app.rot13.transformer`` service will be injected when
// an ``App\Util\Rot13Transformer`` type-hint is detected
// the "app.rot13.transformer" service will be injected when
// an App\Util\Rot13Transformer type-hint is detected
$services->alias(Rot13Transformer::class, 'app.rot13.transformer');
};

Expand Down Expand Up @@ -355,8 +355,8 @@ To fix that, add an :ref:`alias <service-autowiring-alias>`:

$services->set(Rot13Transformer::class);

// the ``App\Util\Rot13Transformer`` service will be injected when
// an ``App\Util\TransformerInterface`` type-hint is detected
// the App\Util\Rot13Transformer service will be injected when
// an App\Util\TransformerInterface type-hint is detected
$services->alias(TransformerInterface::class, Rot13Transformer::class);
};

Expand Down Expand Up @@ -526,13 +526,13 @@ the injection::
$services->set(Rot13Transformer::class)->autowire();
$services->set(UppercaseTransformer::class)->autowire();

// the ``App\Util\UppercaseTransformer`` service will be
// injected when an ``App\Util\TransformerInterface``
// type-hint for a ``$shoutyTransformer`` argument is detected.
// the App\Util\UppercaseTransformer service will be
// injected when an App\Util\TransformerInterface
// type-hint for a $shoutyTransformer argument is detected.
$services->alias(TransformerInterface::class.' $shoutyTransformer', UppercaseTransformer::class);

// If the argument used for injection does not match, but the
// type-hint still matches, the ``App\Util\Rot13Transformer``
// type-hint still matches, the App\Util\Rot13Transformer
// service will be injected.
$services->alias(TransformerInterface::class, Rot13Transformer::class);

Expand Down
5 changes: 2 additions & 3 deletions testing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -566,11 +566,10 @@ In the above example, the test validates that the HTTP response was successful
and the request body contains a ``<h1>`` tag with ``"Hello world"``.

The ``request()`` method also returns a crawler, which you can use to
create more complex assertions in your tests::
create more complex assertions in your tests (e.g. to count the number of page
elements that match a given CSS selector)::

$crawler = $client->request('GET', '/post/hello-world');

// for instance, count the number of ``.comment`` elements on the page
$this->assertCount(4, $crawler->filter('.comment'));

You can learn more about the crawler in :doc:`/testing/dom_crawler`.
Expand Down
0