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

PHP 8.3 compatibility - Deprecated: Calling get_class() without arguments is deprecated #233

Closed
szaqal83 opened this issue Nov 29, 2023 · 3 comments · Fixed by #240
Closed
Milestone

Comments

@szaqal83
Copy link

szaqal83 commented Nov 29, 2023

Using version 0.4.1 with PHP 8.3 causes deprecation warning: Deprecated: Calling get_class() without arguments is deprecated. Easy fix is to switch from get_class() to static::class. The self::class magic constant is available in PHP 5.4 and later.

Will there be any update here: https://wordpress.org/plugins/rest-api-oauth1/ ? Published version is 0.3.0, most recent version is 0.4.1.

@spacedmonkey
Copy link
Collaborator

@szaqal83 I have put together a PR at #240. Do you mind taking a look / reviewing?

@szaqal83
Copy link
Author

I'll check in few moments.

@szaqal83
Copy link
Author

I confirm it fixes deprecation warning: Deprecated: Calling get_class() without arguments is deprecated.

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 a pull request may close this issue.

2 participants