From 826c0214c9244116f4f15579b4a762b1b658be7c Mon Sep 17 00:00:00 2001 From: Oskar Stark Date: Sun, 14 Apr 2024 21:17:36 +0200 Subject: [PATCH] Use DOCtor-RST 1.60.1 --- .doctor-rst.yaml | 1 + .github/workflows/ci.yaml | 2 +- validation/custom_constraint.rst | 6 +++--- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.doctor-rst.yaml b/.doctor-rst.yaml index f8b4ba96a91..5f428fc80ca 100644 --- a/.doctor-rst.yaml +++ b/.doctor-rst.yaml @@ -15,6 +15,7 @@ rules: ensure_correct_format_for_phpfunction: ~ ensure_exactly_one_space_before_directive_type: ~ ensure_exactly_one_space_between_link_definition_and_link: ~ + ensure_explicit_nullable_types: ~ ensure_github_directive_start_with_prefix: prefix: 'Symfony' ensure_link_bottom: ~ diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 50524a74310..a7a2db5f7a9 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.59.0 + uses: docker://oskarstark/doctor-rst:1.60.1 with: args: --short --error-format=github --cache-file=/github/workspace/.cache/doctor-rst.cache diff --git a/validation/custom_constraint.rst b/validation/custom_constraint.rst index e7c172181c3..549de6e3234 100644 --- a/validation/custom_constraint.rst +++ b/validation/custom_constraint.rst @@ -320,9 +320,9 @@ define those options as public properties on the constraint class: public function __construct( $mandatoryFooOption, - string $message = null, - bool $optionalBarOption = null, - array $groups = null, + ?string $message = null, + ?bool $optionalBarOption = null, + ?array $groups = null, $payload = null, array $options = [] ) {