mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-15 22:28:14 +00:00
Add typehints to object parameters
This commit is contained in:
@@ -5,7 +5,7 @@ namespace FireflyIII\Http\Requests;
|
||||
use Auth;
|
||||
use FireflyIII\Models\Account;
|
||||
use Input;
|
||||
|
||||
use Exception;
|
||||
/**
|
||||
* Class JournalFormRequest
|
||||
*
|
||||
@@ -62,7 +62,7 @@ class JournalFormRequest extends Request
|
||||
$rules['category'] = 'between:1,255';
|
||||
break;
|
||||
default:
|
||||
die('Cannot handle ' . $what);
|
||||
throw new Exception('Cannot handle ' . $what);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user