WP-API / OAuth1

OAuth server implementation for WP API
http://oauth1.wp-api.org/
327 stars 109 forks source link

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

Closed szaqal83 closed 5 months ago

szaqal83 commented 7 months ago

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 commented 5 months ago

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

szaqal83 commented 5 months ago

I'll check in few moments.

szaqal83 commented 5 months ago

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