Too few arguments error
freescout-helpdesk opened this issue · comments
FreeScout commented
If one of the parameters passed to \Eventy::filter()
(or 'action()') is null
you will get "Too few arguments..." error:
\Eventy::addFilter('filter_name', function($test1, $test2) {
return $test1;
}, 20, 2);
$test1 = 1;
$tes2 = null;
\Eventy::filter('filter_name', $test1, $test2);
Tor Morten Jensen commented
@freescout-helpdesk Sorry for the late response. I'll look into this. Thanks for reporting.
Tor Morten Jensen commented
Fixed in 0.5.6 :)
FreeScout commented
Same issue with actions (Action.php)
Tor Morten Jensen commented
@freescout-helpdesk Should be fixed in the latest release. If you have any further issues, please open a new issue.