From f316bdc746cdb9317c0c150b9604eb4951e6b027 Mon Sep 17 00:00:00 2001 From: Antoine Lamirault Date: Fri, 22 Sep 2023 11:02:14 +0200 Subject: [PATCH] Use Doctor RST 1.51.0 --- .doctor-rst.yaml | 2 +- .github/workflows/ci.yaml | 2 +- http_client.rst | 2 +- validation/custom_constraint.rst | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.doctor-rst.yaml b/.doctor-rst.yaml index dfb64c1ae8a..c307c959410 100644 --- a/.doctor-rst.yaml +++ b/.doctor-rst.yaml @@ -16,6 +16,7 @@ rules: ensure_exactly_one_space_between_link_definition_and_link: ~ ensure_link_definition_contains_valid_url: ~ ensure_order_of_code_blocks_in_configuration_block: ~ + ensure_php_reference_syntax: ~ extend_abstract_controller: ~ extension_xlf_instead_of_xliff: ~ forbidden_directives: @@ -94,7 +95,6 @@ whitelist: - 'The bin/console Command' - '.. _`LDAP injection`: http://projects.webappsec.org/w/page/13246947/LDAP%20Injection' - '.. versionadded:: 1.9.0' # Encore - - '.. versionadded:: 1.11' # Messenger (Middleware / DoctrineBundle) - '.. versionadded:: 1.18' # Flex in setup/upgrade_minor.rst - '.. versionadded:: 1.0.0' # Encore - '.. versionadded:: 5.1' # Private Services diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 44e17393aba..a7490527092 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -73,7 +73,7 @@ jobs: key: ${{ runner.os }}-doctor-rst-${{ steps.extract_base_branch.outputs.branch }} - name: "Run DOCtor-RST" - uses: docker://oskarstark/doctor-rst:1.49.0 + uses: docker://oskarstark/doctor-rst:1.51.0 with: args: --short --error-format=github --cache-file=/github/workspace/.cache/doctor-rst.cache diff --git a/http_client.rst b/http_client.rst index 62fec487881..353f2024491 100644 --- a/http_client.rst +++ b/http_client.rst @@ -1358,7 +1358,7 @@ installed in your application:: // this won't hit the network if the resource is already in the cache $response = $client->request('GET', 'https://example.com/cacheable-resource'); -:class:`Symfony\\Component\\HttpClient\\CachingHttpClient`` accepts a third argument +:class:`Symfony\\Component\\HttpClient\\CachingHttpClient` accepts a third argument to set the options of the :class:`Symfony\\Component\\HttpKernel\\HttpCache\\HttpCache`. Consuming Server-Sent Events diff --git a/validation/custom_constraint.rst b/validation/custom_constraint.rst index b3909515fa3..57caa12a1e6 100644 --- a/validation/custom_constraint.rst +++ b/validation/custom_constraint.rst @@ -622,7 +622,7 @@ A class constraint validator must be applied to the class itself: Testing Custom Constraints -------------------------- -Use the :class:`Symfony\\Component\\Validator\\Test\\ConstraintValidatorTestCase`` +Use the :class:`Symfony\\Component\\Validator\\Test\\ConstraintValidatorTestCase` class to simplify writing unit tests for your custom constraints:: // tests/Validator/ContainsAlphanumericValidatorTest.php