Skip to content

[Testing] Update nullable types #19786

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
Apr 15, 2024
Merged

[Testing] Update nullable types #19786

merged 1 commit into from
Apr 15, 2024

Conversation

smnandre
Copy link
Member

The Symfony codebase as been recently updated to replace implicit nullable types with explicit ones, but i think the code shown in documentation (method signatures or examples) has not been updated at the same time.

This PR is just a small "example" of what's to be updated on the Testing page

How do you think we should handle this ?
Create a "meta-issue" and split the work by component ?

The codebase as been recently updated to replace implicit nullable types with explicit ones, but i think the doc has not been updated.

This PR is just an "example" on this page. 

How do you think we should handle this ?
Create a "meta-issue" and split the work by component ?
Copy link
Contributor

@OskarStark OskarStark left a comment

Choose a reason for hiding this comment

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

IMHO no need to add a meta issue, but we could add a DOCtor-RST rule which spits implicit nullable typehints.

Do you want to give it a try @smnandre ?

cc @alamirault @MrYamous

@smnandre
Copy link
Member Author

I'm not sure to understand the CI/Code Blocks fails here 🤷‍♂️

Concerning the DOCtor-RST rule, if you can point me in some direction / show some examples i can try :)

smnandre added a commit to smnandre/symfony-docs that referenced this pull request Apr 13, 2024
@OskarStark
Copy link
Contributor

I'm not sure to understand the CI/Code Blocks fails here 🤷‍♂️

Maybe it should be:

- request(
+ public function request(

@OskarStark
Copy link
Contributor

Concerning the DOCtor-RST rule, if you can point me in some direction / show some examples i can try :)

Sure, the repo can be found here:
https://github.com/OskarStark/doctor-rst

I created a new issue with some more information

OskarStark added a commit that referenced this pull request Apr 15, 2024
This PR was merged into the 5.4 branch.

Discussion
----------

[CS] Fix more nullable types

Follows #19786

Commits
-------

d896411 [CS] Fix more nullable types
@OskarStark
Copy link
Contributor

Thank you Simon.

@OskarStark OskarStark merged commit da34a01 into symfony:5.4 Apr 15, 2024
2 of 3 checks passed
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.

3 participants