Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix Static Analysis and skip cancel test
  • Loading branch information
WendellAdriel committed Sep 16, 2025
commit f6c5f903a8381a5fc5886c5ff89ae30af4a63473
2 changes: 1 addition & 1 deletion src/Illuminate/Http/Client/Batch.php
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ public function send(): array

return $result;
},
'rejected' => function ($reason, $key) use (&$results, $catchCallback) {
'rejected' => function ($reason, $key) use ($catchCallback) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@WendellAdriel There is an alert on this line with the use ($catchCallback). Is this used? Looks like it's only using $this->catchCallback and the use statement could be deleted

$this->decrementPendingRequests();

if ($reason instanceof RequestException) {
Expand Down
1 change: 1 addition & 0 deletions tests/Http/HttpClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3826,6 +3826,7 @@ public function testBatchNoCallbacks(): void

public function testBatchCancel(): void
{
$this->markTestSkipped('SKIPPING UNTIL DECISION IS MADE TO KEEP OR REMOVE CANCEL FEATURE');
$this->factory->fake([
'https://200.com' => $this->factory::response('OK', 200),
'https://500.com' => $this->factory::response('Error', 500),
Expand Down