Skip to content

[WIP] Fix code-blocks-checker #16868

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

Closed
wants to merge 1 commit into from

Conversation

HeahDude
Copy link
Contributor

This PR is in sync with symfony-tools/code-block-checker#44.

@@ -103,29 +103,29 @@ The ``index()`` method needs the Request object as an argument.
``getArguments()`` knows when to inject it properly if it is type-hinted
correctly::

public function index(Request $request)
public function index(Request $request) { ... }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Imho it is too verbose just to make the code checker happy. What about allowing it somehow as is?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree. In the past (when this tool was introduced), we also decided that it's not the goal of documentation examples to be 100% syntax correct. Their goal is to explain the PHP API and do as good of a job as possible on not distracting the user with irrelevant details.

I'm -1 for these additions.

@Nyholm
Copy link
Member

Nyholm commented Jun 13, 2022

If we rerun the CI some errors should be fixed

@javiereguiluz
Copy link
Member

Jules, I must close this proposal without merging because at least two members of the Docs Team are against this change. I'm sorry, but I thank you for this proposal and for the fixes you did in symfony-tools. Thanks!

@HeahDude HeahDude deleted the fix-code-blocks-checker branch July 11, 2022 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants