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

chore: Replace get_class() by static::class #1239

Merged

Conversation

kwisatz
Copy link
Contributor

@kwisatz kwisatz commented Jul 15, 2024

Same as #1223 but uses static::class where appropriate.

@kwisatz
Copy link
Contributor Author

kwisatz commented Jul 15, 2024

NOTE: The failing checks are a problem with the connection between Github and Scrutinizer and not related to the code itself.

@atanas-vasilev-dev atanas-vasilev-dev self-assigned this Jul 19, 2024
@atanas-vasilev-dev atanas-vasilev-dev merged commit 5839f74 into htmlburger:development Jul 19, 2024
1 check failed
@atanas-vasilev-dev
Copy link
Collaborator

Thanks for your contribution! I just had to adjust usages of $this with static::class when calling static methods for consistency. We'll release a new version that contains this change next week.

Here are the changes that I've made:
637d700

@kwisatz
Copy link
Contributor Author

kwisatz commented Jul 19, 2024

Hi @atanas-vasilev-dev,

these did not look like static calls to me. They're in the context of an instantiated class. But if static::class works here too (or better), of course.

Thanks for merging.

@atanas-vasilev-dev
Copy link
Collaborator

The fix for this issue is now released in https://github.com/htmlburger/carbon-fields/releases/tag/v3.6.5

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.

2 participants