diff --git a/Classes/Utility/HeadlessUserInt.php b/Classes/Utility/HeadlessUserInt.php index fdab7372..c3b9d506 100644 --- a/Classes/Utility/HeadlessUserInt.php +++ b/Classes/Utility/HeadlessUserInt.php @@ -49,7 +49,7 @@ public function unwrap(string $content): string sprintf(self::REGEX, self::NESTED, self::NESTED), [$this, 'replace'], $content - ); + ) ?? $content; } if (str_contains($content, self::NESTED_NULLABLE)) { @@ -59,7 +59,7 @@ function (array $content) { return $this->replace($content, true); }, $content - ); + ) ?? $content; } if (str_contains($content, self::STANDARD_NULLABLE)) { @@ -69,14 +69,14 @@ function (array $content) { return $this->replace($content, true); }, $content - ); + ) ?? $content; } return preg_replace_callback( sprintf(self::REGEX, self::STANDARD, self::STANDARD), [$this, 'replace'], $content - ); + ) ?? $content; } /**