refactor: upgrade to PHP 8.0

This commit is contained in:
Ben Goldsworthy 2021-05-02 19:58:40 +01:00
parent 4afbb94003
commit 39871b6cd0
7 changed files with 42 additions and 92 deletions

View file

@ -28,26 +28,6 @@ use footnotes\includes as Includes;
*/
class Admin {
/**
* The ID of this plugin.
*
* @access private
* @since 2.8.0
* @see Includes\Footnotes::$plugin_name
* @var string $plugin_name The ID of this plugin.
*/
private string $plugin_name;
/**
* The version of this plugin.
*
* @access private
* @since 2.8.0
* @see Includes\Footnotes::$version
* @var string $version The current version of this plugin.
*/
private string $version;
/**
* The WYSIWYG editor integration object.
*
@ -58,16 +38,26 @@ class Admin {
/**
* Initialize the class and set its properties.
* @param string $plugin_name The name of this plugin.
* @param string $version The version of this plugin.
*
* @since 2.8.0
*/
public function __construct( string $plugin_name, string $version ) {
$this->plugin_name = $plugin_name;
$this->version = $version;
public function __construct( /**
* The ID of this plugin.
*
* @access private
* @since 2.8.0
* @see Includes\Footnotes::$plugin_name
* @var string $plugin_name The ID of this plugin.
*/
private string $plugin_name, /**
* The version of this plugin.
*
* @access private
* @since 2.8.0
* @see Includes\Footnotes::$version
* @var string $version The current version of this plugin.
*/
private string $version ) {
$this->load_dependencies();