mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Some PHP 7.1 compatible code.
This commit is contained in:
@@ -500,7 +500,7 @@ class AccountRepository implements AccountRepositoryInterface
|
||||
*
|
||||
* @return null|string
|
||||
*/
|
||||
private function filterIban(string $iban = null)
|
||||
private function filterIban(?string $iban)
|
||||
{
|
||||
if (is_null($iban)) {
|
||||
return null;
|
||||
|
||||
@@ -44,7 +44,7 @@ class RuleGroupRepository implements RuleGroupRepositoryInterface
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function destroy(RuleGroup $ruleGroup, RuleGroup $moveTo = null): bool
|
||||
public function destroy(RuleGroup $ruleGroup, ?RuleGroup $moveTo): bool
|
||||
{
|
||||
/** @var Rule $rule */
|
||||
foreach ($ruleGroup->rules as $rule) {
|
||||
|
||||
@@ -39,7 +39,7 @@ interface RuleGroupRepositoryInterface
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function destroy(RuleGroup $ruleGroup, RuleGroup $moveTo = null): bool;
|
||||
public function destroy(RuleGroup $ruleGroup, ?RuleGroup $moveTo): bool;
|
||||
|
||||
/**
|
||||
* @param int $ruleGroupId
|
||||
|
||||
@@ -253,7 +253,7 @@ class TagRepository implements TagRepositoryInterface
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function sumOfTag(Tag $tag, Carbon $start = null, Carbon $end = null): string
|
||||
public function sumOfTag(Tag $tag, ?Carbon $start, ?Carbon $end): string
|
||||
{
|
||||
/** @var JournalCollectorInterface $collector */
|
||||
$collector = app(JournalCollectorInterface::class);
|
||||
|
||||
@@ -133,7 +133,7 @@ interface TagRepositoryInterface
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function sumOfTag(Tag $tag, Carbon $start = null, Carbon $end = null): string;
|
||||
public function sumOfTag(Tag $tag, ?Carbon $start, ?Carbon $end): string;
|
||||
|
||||
/**
|
||||
* @param Tag $tag
|
||||
|
||||
Reference in New Issue
Block a user