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

Make AssertableJson easier to extend by replacing self with static #37380

Merged
merged 2 commits into from
May 17, 2021

Conversation

tontonsb
Copy link
Contributor

I was trying to add a couple of features to AssertableJson but ended up having to override multiple other methods which returned or expected the default class because of the self.

This PR changes all occurences of static to self so these methods keep working without change when the class is extended.

src/Illuminate/Testing/Fluent/AssertableJson.php Outdated Show resolved Hide resolved
@taylorotwell taylorotwell merged commit ac2a366 into laravel:8.x May 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants