Skip to content

Commit 0d82ba8

Browse files
villermenitsgoingd
authored andcommitted
Cast DBAL param to string before escaping
Fixes a deprecation notice when using PHP 8.1
1 parent a7169b3 commit 0d82ba8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Clockwork/DataSource/DBALDataSource.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ function ($part) {
168168
return '(' . $param . ')';
169169
}
170170
} else {
171-
$param = htmlspecialchars($param); // Originally used the e() Laravel helper
171+
$param = htmlspecialchars((string) $param); // Originally used the e() Laravel helper
172172
}
173173
return '"' . (string) $param . '"';
174174
}

0 commit comments

Comments
 (0)