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:
@@ -163,7 +163,7 @@ class SimpleFlarumSearchTest extends TestCase
|
||||
|
||||
try {
|
||||
$this->app()->getContainer()->make(CustomSearcher::class);
|
||||
} catch (BindingResolutionException $e) {
|
||||
} catch (BindingResolutionException) {
|
||||
$anExceptionWasThrown = true;
|
||||
}
|
||||
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user