Skip to content

Commit

Permalink
MDL-77347 files: Added class properties that are not declared.
Browse files Browse the repository at this point in the history
In PHP 8.2 and later, setting a value to an undeclared class property is
deprecated and emits a deprecation notice.
So we need to add missing class properties that still need to be declared.
  • Loading branch information
meirzamoodle committed Mar 27, 2023
1 parent 7466712 commit a36fcf4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions files/renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,9 @@ class files_tree_viewer implements renderable {
public $path;
public $context;

/** @var array file tree viewer options. */
protected array $options = [];

/**
* Constructor of moodle_file_tree_viewer class
* @param file_info $file_info
Expand Down

0 comments on commit a36fcf4

Please sign in to comment.