Three fixes courtesy of user @Bonno

This commit is contained in:
James Cole
2016-04-24 12:24:59 +02:00
parent ec12238ea1
commit 99c219ed97
3 changed files with 3 additions and 3 deletions

View File

@@ -16,7 +16,7 @@ class CategoryId extends BasicConverter implements ConverterInterface
/**
* @return Category
*/
public function convert(): Budget
public function convert(): Category
{
/** @var SingleCategoryRepositoryInterface $repository */
$repository = app('FireflyIII\Repositories\Category\SingleCategoryRepositoryInterface');

View File

@@ -17,7 +17,7 @@ class CategoryName extends BasicConverter implements ConverterInterface
/**
* @return Category
*/
public function convert(): Budget
public function convert(): Category
{
/** @var SingleCategoryRepositoryInterface $repository */
$repository = app('FireflyIII\Repositories\Category\SingleCategoryRepositoryInterface');

View File

@@ -20,7 +20,7 @@ class Bill implements PostProcessorInterface
{
// get bill id.
if (!is_null($this->data['bill'])) {
if (!is_null($this->data['bill']) && !is_null($this->data['bill']->id)) {
$this->data['bill-id'] = $this->data['bill']->id;
}