Skip to content

Commit e072103

Browse files
committed
Added coverage ignore annotation
1 parent 04d3e1a commit e072103

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/SqlDumpLoader.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,12 @@ public function getErrors(): array
5858
*/
5959
private function splitSql(string $sql): array
6060
{
61-
$split = preg_split('~\([^)]*\)(*SKIP)(*F)|;~', $sql);
61+
$split = preg_split('~\([^)]*+\)(*SKIP)(*F)|;~', $sql);
6262

6363
if ($split === false) {
64+
// @codeCoverageIgnoreStart
6465
throw new \RuntimeException('Unable to split SQL');
66+
// @codeCoverageIgnoreEnd
6567
}
6668

6769
return $split;

0 commit comments

Comments
 (0)