OllieJones / index-wp-mysql-for-speed

A plugin to add useful indexes to your WordPress installation's MySQL database.
GNU General Public License v2.0
125 stars 10 forks source link

PHP 8.3 deprecated warning get_class() #65

Closed ipajen closed 1 year ago

ipajen commented 1 year ago

Environment

`Deprecated Calling get_class() without arguments is deprecated wp-content/plugins/index-wp-mysql-for-speed-2f15cb4144129aea6b7e2ddff9e439c5a6518372/afp/factory/_common/utility/wp_utility/AdminPageFramework_WPUtility.php:261

Deprecated Calling get_class() without arguments is deprecated wp-content/plugins/index-wp-mysql-for-speed-2f15cb4144129aea6b7e2ddff9e439c5a6518372/afp/factory/_common/_abstract/_controller/AdminPageFramework_Resource_Base.php:152

Deprecated Calling get_class() without arguments is deprecated wp-content/plugins/index-wp-mysql-for-speed-2f15cb4144129aea6b7e2ddff9e439c5a6518372/afp/factory/_common/utility/wp_utility/AdminPageFramework_WPUtility.php:289

Deprecated Calling get_class() without arguments is deprecated wp-content/plugins/index-wp-mysql-for-speed-2f15cb4144129aea6b7e2ddff9e439c5a6518372/afp/factory/_common/_abstract/_controller/AdminPageFramework_Resource_Base.php:160

`

OllieJones commented 1 year ago

Thanks for this. It looks like, inside a static method, get_class() can be replaced with static::class.