Skip to content

Commit bd75091

Browse files
author
mitchierichie
committed
remove $handler
1 parent c0e2707 commit bd75091

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Aws/tests/Integration/AwsSdkInstrumentationTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,8 @@ public function testRejectsSafelyWithNonStringableObject()
255255
$this->awsSdkInstrumentation->init();
256256
$this->awsSdkInstrumentation->activate();
257257

258-
$kmsClient->getHandlerList()->appendSign(function (callable $handler) {
259-
return function () use ($handler) {
258+
$kmsClient->getHandlerList()->appendSign(function () {
259+
return function () {
260260
return Promise\Create::rejectionFor(new stdClass());
261261
};
262262
});
@@ -287,8 +287,8 @@ public function testRejectsSafelyWithString()
287287
$this->awsSdkInstrumentation->init();
288288
$this->awsSdkInstrumentation->activate();
289289

290-
$kmsClient->getHandlerList()->appendSign(function (callable $handler) {
291-
return function () use ($handler) {
290+
$kmsClient->getHandlerList()->appendSign(function () {
291+
return function () {
292292
return Promise\Create::rejectionFor('failed');
293293
};
294294
});

0 commit comments

Comments
 (0)