mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Clean up tests, test only the important things.
This commit is contained in:
@@ -215,11 +215,17 @@ class Request extends FormRequest
|
||||
* @param string $field
|
||||
*
|
||||
* @return Carbon|null
|
||||
* @throws Exception
|
||||
*/
|
||||
protected function date(string $field): ?Carbon
|
||||
{
|
||||
return $this->get($field) ? new Carbon($this->get($field)) : null;
|
||||
$result = null;
|
||||
try {
|
||||
$result = $this->get($field) ? new Carbon($this->get($field)) : null;
|
||||
} catch (Exception $e) {
|
||||
Log::debug(sprintf('Exception when parsing date. Not interesting: %s', $e->getMessage()));
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user