Skip to content

Commit 3968c4d

Browse files
authored
refactor: remove un use var (#57617)
1 parent 7f7ec7b commit 3968c4d

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/Illuminate/Support/Testing/Fakes/ExceptionHandlerFake.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public function assertNotReported(Closure|string $exception)
113113
{
114114
try {
115115
$this->assertReported($exception);
116-
} catch (ExpectationFailedException $e) {
116+
} catch (ExpectationFailedException) {
117117
return;
118118
}
119119

tests/Foundation/FoundationHelpersTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ public function toResponse($request)
290290
$this->fail(
291291
sprintf('abort function must throw %s when receiving code as Responable implementation.', HttpResponseException::class)
292292
);
293-
} catch (HttpResponseException $ex) {
293+
} catch (HttpResponseException) {
294294
$this->assertSame($request, $code->request);
295295
}
296296
}

tests/Integration/Database/SchemaBuilderSchemaNameTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ public function testHasTable($connection)
566566
try {
567567
$db->statement("create login my_user with password = 'Passw0rd'");
568568
$db->statement('create user my_user for login my_user');
569-
} catch(\Illuminate\Database\QueryException $e) {
569+
} catch(\Illuminate\Database\QueryException) {
570570
//
571571
}
572572

tests/Integration/Events/ShouldDispatchAfterCommitEventTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ public function testChildEventsAreNotDispatchedIfParentTransactionFails()
160160

161161
throw new \Exception;
162162
});
163-
} catch (\Exception $e) {
163+
} catch (\Exception) {
164164
//
165165
}
166166

tests/Queue/QueueSyncQueueTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function testFailedJobHasAccessToJobInstance()
7878

7979
try {
8080
$sync->push(new FailingSyncQueueJob());
81-
} catch (LogicException $e) {
81+
} catch (LogicException) {
8282
$this->assertSame('extraValue', $_SERVER['__sync.failed']);
8383
}
8484
}

0 commit comments

Comments
 (0)