mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Remove phpstan comments.
This commit is contained in:
@@ -46,7 +46,7 @@ class FireflyConfig
|
||||
}
|
||||
try {
|
||||
Configuration::where('name', $name)->forceDelete();
|
||||
} catch (Exception $e) { // @phpstan-ignore-line
|
||||
} catch (Exception $e) {
|
||||
// @ignoreException
|
||||
}
|
||||
}
|
||||
@@ -68,7 +68,7 @@ class FireflyConfig
|
||||
try {
|
||||
/** @var Configuration|null $config */
|
||||
$config = Configuration::where('name', $name)->first(['id', 'name', 'data']);
|
||||
} catch (QueryException|Exception $e) { // @phpstan-ignore-line
|
||||
} catch (QueryException|Exception $e) {
|
||||
throw new FireflyException(sprintf('Could not poll the database: %s', $e->getMessage()));
|
||||
}
|
||||
|
||||
@@ -95,7 +95,7 @@ class FireflyConfig
|
||||
{
|
||||
try {
|
||||
$config = Configuration::whereName($name)->whereNull('deleted_at')->first();
|
||||
} catch (QueryException|Exception $e) { // @phpstan-ignore-line
|
||||
} catch (QueryException|Exception $e) {
|
||||
$item = new Configuration();
|
||||
$item->name = $name;
|
||||
$item->data = $value;
|
||||
|
Reference in New Issue
Block a user