Skip to content
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

[Tests] New iteration of removing $this occurrences in future static data providers #48988

Open
wants to merge 1 commit into
base: 5.4
Choose a base branch
from

Conversation

alexandre-daubois
Copy link
Contributor

Q A
Branch? 5.4
Bug fix? yes-ish
New feature? no
Deprecations? no
Tickets Easing #48668 (comment)
License MIT
Doc PR NA

Follow-up of #48980

}

public function provideMissingStrategies()
{
yield from $this->provideStrategies('non-existent-file.json');
yield from static::provideStrategies('non-existent-file.json');
}

public function provideStrategies(string $manifestPath)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
public function provideStrategies(string $manifestPath)
public static function provideStrategies(string $manifestPath)

?

Copy link
Contributor

Choose a reason for hiding this comment

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

The other PR will only change this to static automatically, if it is directly used as a dataProvider somewhere, is that the case?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I would say yes but isn't it a BC break to do so on a public method? 😕

Copy link
Member

Choose a reason for hiding this comment

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

tests are not covered by the BC policy

Copy link
Contributor

Choose a reason for hiding this comment

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

/Test/ directory is covered by BC, while /Tests/ not 😃

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh I wasn't aware of this detail, thank you! Updated the PR 🙂

@nicolas-grekas
Copy link
Member

Can you merge this one and #49054 please?

@alexandre-daubois alexandre-daubois force-pushed the fix/remove-this-data-provider-2 branch from e9b5e37 to 1386ac2 Compare Jan 23, 2023
@alexandre-daubois
Copy link
Contributor Author

That's merged 👍

@OskarStark
Copy link
Contributor

I think this can be merged @nicolas-grekas

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.

None yet

5 participants