Fix some nullable methods.

This commit is contained in:
James Cole
2020-08-02 12:19:10 +02:00
parent d0a01d73c4
commit 0219069766
3 changed files with 9 additions and 9 deletions

View File

@@ -61,7 +61,7 @@ abstract class Controller extends BaseController
*
* @return string
*/
protected function buildParams(): string
final protected function buildParams(): string
{
$return = '?';
$params = [];
@@ -83,7 +83,7 @@ abstract class Controller extends BaseController
/**
* @return Manager
*/
protected function getManager(): Manager
final protected function getManager(): Manager
{
// create some objects:
$manager = new Manager;

View File

@@ -238,7 +238,7 @@ class RecurrenceController extends Controller
$result = $recurring->fire();
} catch (FireflyException $e) {
Log::error($e->getMessage());
throw new FireflyException('200022: Error in cron job.');
throw new FireflyException('200022: Error in cron job.',0, $e);
}
if (false === $result) {
return response()->json([], 204);