1
0
mirror of https://github.com/flarum/core.git synced 2025-08-06 08:27:42 +02:00

chore: Remove unused vars in catch (#3839)

This commit is contained in:
Ngô Quốc Đạt
2023-06-21 22:38:24 +07:00
committed by GitHub
parent 0cf2001478
commit b003736d75
6 changed files with 7 additions and 7 deletions

View File

@@ -163,7 +163,7 @@ class SimpleFlarumSearchTest extends TestCase
try {
$this->app()->getContainer()->make(CustomSearcher::class);
} catch (BindingResolutionException $e) {
} catch (BindingResolutionException) {
$anExceptionWasThrown = true;
}

View File

@@ -129,7 +129,7 @@ class ConfigTest extends TestCase
try {
$config['custom_a'] = 'c';
} catch (RuntimeException $_) {
} catch (RuntimeException) {
}
// Ensure the value was not changed
@@ -146,7 +146,7 @@ class ConfigTest extends TestCase
try {
unset($config['custom_a']);
} catch (RuntimeException $_) {
} catch (RuntimeException) {
}
// Ensure the value was not changed