tormjens / eventy

WordPress-like actions and filters for Laravel
422 stars 48 forks source link

Too few arguments error #19

Closed freescout-helpdesk closed 5 years ago

freescout-helpdesk commented 5 years ago

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);
tormjens commented 5 years ago

@freescout-helpdesk Sorry for the late response. I'll look into this. Thanks for reporting.

tormjens commented 5 years ago

Fixed in 0.5.6 :)

freescout-helpdesk commented 4 years ago

Same issue with actions (Action.php)

tormjens commented 4 years ago

@freescout-helpdesk Should be fixed in the latest release. If you have any further issues, please open a new issue.