Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Validator] avoid broken rendering of inline types inUniqueEntity#20962

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
javiereguiluz merged 1 commit intosymfony:6.4fromsantysisi:patch-2
May 15, 2025

Conversation

santysisi
Copy link
Contributor

@santysisisantysisi commentedMay 15, 2025
edited
Loading

This PR fixes a documentation issue where inline type annotations like| string | were not rendering correctly. This happened because reStructuredText interprets text enclosed in | (e.g.,|string|) as asubstitution reference, which requires a corresponding definition elsewhere in the document.

Changes
Replaced ambiguous expressions like| string | with clearer wording such as: boolean, string, or array.

Ensures consistent rendering across Sphinx and other reStructuredText parsers.

Why this matters
This change improves the readability of inline documentation and avoids confusion by using a format that renders correctly and doesn't unintentionally trigger reStructuredText substitution rules.

This PR fixes an issue in the documentation where inline type annotations like | ``string`` | were not rendering correctly due to reStructuredText interpreting the | characters as substitution references.Changes:Replaced | ``string`` | with a more reliable format: boolean, string or arrayEnsures consistent rendering across Sphinx and other reST parsersThis improves readability and avoids confusion when displaying valid type options in inline documentation.
@santysisisantysisi requested a review fromxabbuh as acode ownerMay 15, 2025 01:36
@carsonbotcarsonbot added this to the6.4 milestoneMay 15, 2025
@OskarStarkOskarStark changed the title[Validator] avoid broken rendering of inline types in UniqueEntity[Validator] avoid broken rendering of inline types inUniqueEntityMay 15, 2025
@javiereguiluzjaviereguiluz merged commit8f7e04c intosymfony:6.4May 15, 2025
3 checks passed
@javiereguiluz
Copy link
Member

Wow! Very nice catch! I wasn't aware of this at all. Thanks!

I searched in the docs and found another occurrence of this (it didn't happen in 6.4 branch but in upper branches, but I fixed it in 6.4 too:90e7bf9)

santysisi reacted with heart emoji

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@xabbuhxabbuhAwaiting requested review from xabbuhxabbuh is a code owner

Assignees
No one assigned
Projects
None yet
Milestone
6.4
Development

Successfully merging this pull request may close these issues.

3 participants
@santysisi@javiereguiluz@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp