Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Use static methods inside data providers #48709

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 22, 2022

Conversation

OskarStark
Copy link
Contributor

@OskarStark OskarStark commented Dec 20, 2022

Q A
Branch? 5.4
Bug fix? no
New feature? no
Deprecations? no
Tickets n/a
License MIT
Doc PR n/a

refs #48668

follows

@carsonbot
Copy link

Hey!

Thanks for your PR. You are targeting branch "6.3" but it seems your PR description refers to branch "5.4".
Could you update the PR description or change target branch? This helps core maintainers a lot.

Cheers!

Carsonbot

@OskarStark OskarStark changed the base branch from 6.3 to 5.4 December 20, 2022 08:03
@OskarStark OskarStark modified the milestones: 6.3, 5.4 Dec 20, 2022
@OskarStark OskarStark self-assigned this Dec 20, 2022
$container->expects($this->exactly(2))->method('hasParameter')->willReturn(true);
$container->expects($this->exactly(2))->method('getParameter')
$container->expects(self::exactly(2))->method('hasParameter')->willReturn(true);
$container->expects(self::exactly(2))->method('getParameter')
Copy link
Contributor Author

@OskarStark OskarStark Dec 20, 2022

Choose a reason for hiding this comment

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

All these methods are defined as static anyway, shall we fix them through the whole codebase starting from 5.4 @nicolas-grekas ? Automated via rector ofc

Copy link
Member

@nicolas-grekas nicolas-grekas Dec 22, 2022

Choose a reason for hiding this comment

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

No need to. That wouldn't provide any real added value but would consume a lot of time for sure.

@OskarStark OskarStark changed the title Static data providers 3 Use static methods inside data providers Dec 20, 2022
@OskarStark
Copy link
Contributor Author

RTM from my side as another partial one

@nicolas-grekas nicolas-grekas force-pushed the static-data-providers-3 branch from b9d6d46 to 9a18048 Compare December 22, 2022 10:31
@nicolas-grekas
Copy link
Member

Thank you @OskarStark.

@nicolas-grekas nicolas-grekas merged commit 4362f6e into symfony:5.4 Dec 22, 2022
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.

4 participants