From 48ca849f737e1a1fcfede75ca4acbfea66fc6684 Mon Sep 17 00:00:00 2001 From: Meirza Date: Tue, 7 Feb 2023 10:11:35 +0700 Subject: [PATCH] MDL-77350 media: Added missing class properties 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. --- media/player/videojs/classes/plugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/media/player/videojs/classes/plugin.php b/media/player/videojs/classes/plugin.php index eb7c2189ef1..8694163551d 100644 --- a/media/player/videojs/classes/plugin.php +++ b/media/player/videojs/classes/plugin.php @@ -285,7 +285,7 @@ class media_videojs_plugin extends core_media_player_native { $url = reset($urls); // Check against regex. - if (preg_match($this->get_regex_youtube(), $url->out(false), $this->matches)) { + if (preg_match($this->get_regex_youtube(), $url->out(false), $matches)) { $this->youtube = true; return array($url); }