Skip to content

Commit 1986d16

Browse files
committed
Fix Psalm issues
1 parent e21f72b commit 1986d16

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/SqlConfig.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ protected static function parseConnectionString(string $connectionString, array
5454

5555
$offset = 0;
5656
foreach ($matches as [$pair, $key, $value, $quote]) {
57-
if ($quote) {
57+
\assert($value !== null);
58+
59+
if ($quote !== null) {
5860
$value = \stripslashes(\substr($value, 1, -1));
5961

6062
if ($value === '') {

0 commit comments

Comments
 (0)