Updated code coverage, improved binder code.

This commit is contained in:
James Cole
2017-12-25 09:44:46 +01:00
parent 5cb948d0f3
commit a3ec741d67
16 changed files with 205 additions and 71 deletions

View File

@@ -25,6 +25,7 @@ namespace FireflyIII\Support\Binder;
use Carbon\Carbon;
use Exception;
use FireflyIII\Helpers\FiscalHelper;
use Illuminate\Routing\Route;
use Log;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
@@ -34,12 +35,12 @@ use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
class Date implements BinderInterface
{
/**
* @param $value
* @param $route
* @param string $value
* @param Route $route
*
* @return mixed
* @return Carbon
*/
public static function routeBinder($value, $route): Carbon
public static function routeBinder(string $value, Route $route): Carbon
{
$fiscalHelper = new FiscalHelper;