Skip to content

Commit

Permalink
fixes a php notice in 8.2
Browse files Browse the repository at this point in the history
Deprecated: Creation of dynamic property NewfoldLabs\WP\Module\Deactivation\DeactivationSurvey::$strings is deprecated
  • Loading branch information
circlecube committed Apr 10, 2024
1 parent 312caf3 commit dc297cf
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions includes/DeactivationSurvey.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,14 @@
*/
class DeactivationSurvey {

// public $container;
public $strings;

/**
* DeactivationSurvey constructor.
*/
public function __construct() {
// $this->container = $container;
// $this->container = container();

$defaults = array(
'surveyAriaTitle' => __( 'Plugin Deactivation Survey', 'wp-module-deactivation' ),
Expand Down Expand Up @@ -80,8 +83,8 @@ public function __construct() {

// Merge defaults with container values from plugin
// $this->strings = wp_parse_args(
// $container->has( 'deactivation' ) ?
// $container['deactivation'] :
// $this->container->has( 'deactivation' ) ?
// $this->container['deactivation'] :
// array(),
// $defaults
// );
Expand Down

0 comments on commit dc297cf

Please sign in to comment.