From 47bef006f89efd8900a257a116a19b5fa0aaa6a0 Mon Sep 17 00:00:00 2001 From: Jeroen Rothbauer <15321825+JeroenJRP@users.noreply.github.com> Date: Mon, 9 Dec 2024 09:36:38 +0100 Subject: [PATCH] Forgot to pass the variables to the anonymous function --- src/services/OembedService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/OembedService.php b/src/services/OembedService.php index b9a8135..8170804 100755 --- a/src/services/OembedService.php +++ b/src/services/OembedService.php @@ -65,7 +65,7 @@ public function parseTags(string $input, array $options = [], array $cacheProps return ''; } - $output = preg_replace_callback('/\(?:.*?)<\/oembed>/i', function($matches) { + $output = preg_replace_callback('/\(?:.*?)<\/oembed>/i', function($matches) use ($options, $cacheProps) { $url = $matches[1]; return $this->render($url, $options, $cacheProps); }, $input);