fix: complete InvesteMoz validation and error corrections

This commit is contained in:
2026-10-29 21:47:33 +02:00
parent 63147312e2
commit daf8623441
718 changed files with 127308 additions and 20959 deletions
+19
View File
@@ -0,0 +1,19 @@
<?php
namespace App\Support;
use RuntimeException;
final class CheckedPattern
{
/** @return list<string> */
public static function split(string $pattern, string $value): array
{
$parts = preg_split($pattern, $value);
if ($parts === false) {
throw new RuntimeException('Text could not be split; original content has been preserved.');
}
return $parts;
}
}