Skip to content

Commit

Permalink
bugfix for "Unknown error type: Creation of dynamic property mod_book…
Browse files Browse the repository at this point in the history
…ing\booking_rules\rules\rule_react_on_event::$ruleisactive is deprecated"
  • Loading branch information
semteacher committed Dec 18, 2024
1 parent ff74409 commit 003ed79
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions classes/booking_rules/rules/rule_daysbefore.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ class rule_daysbefore implements booking_rule {
/** @var string $datefield */
public $datefield = null;

/** @var bool $ruleisactive */
public $ruleisactive = false;

/**
* Load json data from DB into the object.
* @param stdClass $record a rule record from DB
Expand Down
3 changes: 3 additions & 0 deletions classes/booking_rules/rules/rule_react_on_event.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ class rule_react_on_event implements booking_rule {
/** @var object $intervaldata */
public $intervaldata = null;

/** @var bool $ruleisactive */
public $ruleisactive = false;

/** Const state of booking option */
public const ALWAYS = 0;

Expand Down

0 comments on commit 003ed79

Please sign in to comment.