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

Appearance settings

Remove void return type from test methods #39459

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
Dec 11, 2020

Conversation

OskarStark
Copy link
Contributor

Q A
Branch? 4.4
Bug fix? no
New feature? no
Deprecations? no
Tickets ---
License MIT
Doc PR ---

cc @nicolas-grekas

@ogizanagi
Copy link
Contributor

For my information, why this change? For consistency? Can it be enforced with fabbot? Appear in https://symfony.com/doc/current/contributing/code/standards.html?

Note that I'm only asking this because I blindly added void return types in #39399 tests as I wasn't aware of any particular CS rule regarding this :)

nicolas-grekas added a commit that referenced this pull request Dec 11, 2020
This PR was merged into the 5.1 branch.

Discussion
----------

Remove void return type from test methods

| Q             | A
| ------------- | ---
| Branch?       | 5.1
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | ---
| License       | MIT
| Doc PR        | ---

This PR follows #39459

cc @nicolas-grekas

Commits
-------

6e6c3ba Remove void return type from test methods
@nicolas-grekas
Copy link
Member

Tests don't define any API, so there is no need to define the signature of test cases. Removing void is then pure visual cleanups. CS basically yes.
I don't know if php-cs-fixer has a rule to do that. It'd be great.

@nicolas-grekas
Copy link
Member

Thank you @OskarStark.

@nicolas-grekas nicolas-grekas merged commit 8d6794f into symfony:4.4 Dec 11, 2020
@OskarStark OskarStark deleted the no-void-4.4 branch December 11, 2020 15:21
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.

5 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.