Skip to content

Commit 1df3aec

Browse files
Merge pull request #425 from JLG-WOCFR-DEV/codex/fix-s3-signing-and-cli-static-closure-bugs
Fix CLI callbacks and S3 canonical newline bug
2 parents bdc7290 + 6da8314 commit 1df3aec

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

liens-morts-detector-jlg/includes/blc-cli.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ private function run_link_scan(bool $is_full_scan, bool $bypass_rest_window): vo
6969
$controller = blc_make_link_scan_controller($queue);
7070

7171
$this->process_batches(
72-
static function (array $task) use ($controller) {
72+
function (array $task) use ($controller) {
7373
$batch = (int) ($task['args'][0] ?? 0);
7474
$is_full = (bool) ($task['args'][1] ?? false);
7575
$bypass = (bool) ($task['args'][2] ?? false);
@@ -110,7 +110,7 @@ private function run_image_scan(bool $is_full_scan): void
110110
$controller = blc_make_image_scan_controller($queue);
111111

112112
$this->process_batches(
113-
static function (array $task) use ($controller) {
113+
function (array $task) use ($controller) {
114114
$batch = (int) ($task['args'][0] ?? 0);
115115
$is_full = (bool) ($task['args'][1] ?? true);
116116

liens-morts-detector-jlg/includes/blc-s3-exports.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ function blc_s3_sign_request($method, $canonical_uri, $host, $region, $access_ke
413413

414414
$canonical_headers_string = '';
415415
foreach ($canonical_headers as $name => $value) {
416-
$canonical_headers_string .= sprintf('%s:%s\n', strtolower($name), trim($value));
416+
$canonical_headers_string .= sprintf("%s:%s\n", strtolower($name), trim($value));
417417
}
418418

419419
$signed_headers = implode(';', array_keys($canonical_headers));

0 commit comments

Comments
 (0)