This commit is contained in:
James Cole
2018-10-14 17:38:26 +02:00
parent 329b34f7d1
commit db7e3d725e
3 changed files with 58 additions and 25 deletions

View File

@@ -313,10 +313,8 @@ class FireflyValidator extends Validator
*
* @return bool
*/
public function validateRuleTriggerValue(string $attribute, string $value): bool
public function validateRuleTriggerValue(string $attribute, string $value = null): bool
{
//
// first, get the index from this string:
$parts = explode('.', $attribute);
$index = (int)($parts[1] ?? '0');