-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
Use static methods inside data providers #48709
Conversation
Hey! Thanks for your PR. You are targeting branch "6.3" but it seems your PR description refers to branch "5.4". Cheers! Carsonbot |
$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') |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
src/Symfony/Component/Finder/Tests/Iterator/SizeRangeFilterIteratorTest.php
Show resolved
Hide resolved
...ymfony/Component/DependencyInjection/Tests/Config/ContainerParametersResourceCheckerTest.php
Show resolved
Hide resolved
...ony/Component/Form/Tests/Extension/Core/DataTransformer/DateTimeToRfc3339TransformerTest.php
Show resolved
Hide resolved
...ony/Component/Form/Tests/Extension/Core/DataTransformer/DateTimeToRfc3339TransformerTest.php
Show resolved
Hide resolved
src/Symfony/Component/Finder/Tests/Iterator/SizeRangeFilterIteratorTest.php
Show resolved
Hide resolved
RTM from my side as another partial one |
b9d6d46
to
9a18048
Compare
Thank you @OskarStark. |
refs #48668
follows