I have a Wordpress plugin that is no longer maintained but I have not found any plugin that satisfactorily replaces it. As a result, updates to PHP are starting to generate warnings in the plugin. I have little PHP knowledge and am not sure what, exactly, I need to do to update the following snippet so as to avoid the warning "Declaration of case-insensitive constants is deprecated" under PHP 7.3.
Here is the snippet:
$uploads = wp_upload_dir();
define( 'DOIFD_SERVICE', '', true );
define( 'DOIFD_VERSION', '2.1.6' );
define( 'DOIFD_URL', plugin_dir_url( __FILE__ ) );
define( 'DOIFD_DIR', plugin_dir_path( __FILE__ ) );
define( 'DOIFD_DOWNLOAD_DIR', $uploads[ 'basedir' ] . '/doifd_downloads/' );
define( 'DOIFD_DOWNLOAD_URL', $uploads[ 'baseurl' ] . '/doifd_downloads/' );
define( 'DOIFD_IMG_URL', plugin_dir_url( __FILE__ ) . 'public/assets/img/' );
define( 'DOIFD_ADMIN_IMG_URL', plugin_dir_url( __FILE__ ) . 'admin/assets/img/' );
define
call (and make sure it's always used with uppercase letters).