media-explorer icon indicating copy to clipboard operation
media-explorer copied to clipboard

Deprecation Warning Thrown on PHP8.2

Open jakewrfoster opened this issue 1 year ago • 2 comments

Issue

On PHP 8.2, the plugin throws the following deprecation warnings:

PHP Deprecated: Creation of dynamic property Media_Explorer::$file is deprecated in /my-cool-path/wp-content/plugins/media-explorer/class.plugin.php on line 27
PHP Deprecated:  Creation of dynamic property Media_Explorer::$plugin is deprecated in /my-cool-path/wp-content/plugins/media-explorer/class.plugin.php on line 89

Proposed solution

Add the props to the class so that they aren't dynamically created.

jakewrfoster avatar Nov 22 '23 16:11 jakewrfoster