mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-12-16 00:01:18 +00:00
Some PHP 7.1 compatible code.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user