mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-08-14 06:54:48 -05:00
Added PHP7 return type statements.
This commit is contained in:
@@ -31,7 +31,7 @@ class AccountList implements BinderInterface
|
||||
*
|
||||
* @return Collection
|
||||
*/
|
||||
public static function routeBinder($value, $route)
|
||||
public static function routeBinder($value, $route): Collection
|
||||
{
|
||||
|
||||
if (Auth::check()) {
|
||||
|
||||
@@ -12,6 +12,7 @@ namespace FireflyIII\Support\Binder;
|
||||
|
||||
use Auth;
|
||||
use FireflyIII\Models\Budget;
|
||||
use Illuminate\Support\Collection;
|
||||
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||
|
||||
|
||||
@@ -29,7 +30,7 @@ class BudgetList implements BinderInterface
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public static function routeBinder($value, $route)
|
||||
public static function routeBinder($value, $route): Collection
|
||||
{
|
||||
if (Auth::check()) {
|
||||
$ids = explode(',', $value);
|
||||
|
||||
@@ -12,6 +12,7 @@ namespace FireflyIII\Support\Binder;
|
||||
|
||||
use Auth;
|
||||
use FireflyIII\Models\Category;
|
||||
use Illuminate\Support\Collection;
|
||||
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||
|
||||
/**
|
||||
@@ -28,7 +29,7 @@ class CategoryList implements BinderInterface
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public static function routeBinder($value, $route)
|
||||
public static function routeBinder($value, $route): Collection
|
||||
{
|
||||
if (Auth::check()) {
|
||||
$ids = explode(',', $value);
|
||||
|
||||
@@ -32,7 +32,7 @@ class Date implements BinderInterface
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public static function routeBinder($value, $route)
|
||||
public static function routeBinder($value, $route): Carbon
|
||||
{
|
||||
$fiscalHelper = new FiscalHelper;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user