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);