diff --git a/src/Illuminate/View/Compilers/ComponentTagCompiler.php b/src/Illuminate/View/Compilers/ComponentTagCompiler.php index 799375096eeb..080456818810 100644 --- a/src/Illuminate/View/Compilers/ComponentTagCompiler.php +++ b/src/Illuminate/View/Compilers/ComponentTagCompiler.php @@ -574,7 +574,7 @@ protected function parseAttributeBag(string $attributeString) */ protected function parseComponentTagClassStatements(string $attributeString) { - return preg_replace_callback( + return preg_replace_callback( '/@(class)(\( ( (?>[^()]+) | (?2) )* \))/x', function ($match) { if ($match[1] === 'class') { $match[2] = str_replace('"', "'", $match[2]);