create-prisma-php-app 3.4.0 → 3.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -436,6 +436,14 @@ class TemplateCompiler
|
|
|
436
436
|
}
|
|
437
437
|
|
|
438
438
|
$htmlOut = self::innerXml($fragDom);
|
|
439
|
+
$htmlOut = preg_replace_callback(
|
|
440
|
+
'/<([a-z0-9-]+)([^>]*)\/>/i',
|
|
441
|
+
fn($m) => in_array(strtolower($m[1]), self::$selfClosingTags, true)
|
|
442
|
+
? $m[0]
|
|
443
|
+
: "<{$m[1]}{$m[2]}></{$m[1]}>",
|
|
444
|
+
$htmlOut
|
|
445
|
+
);
|
|
446
|
+
|
|
439
447
|
if (
|
|
440
448
|
str_contains($htmlOut, '{{') ||
|
|
441
449
|
self::hasComponentTag($htmlOut) ||
|