You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (! isset($args_from_wordpress_hooks[0])) {
thrownewRuntimeException(
sprintf('Event mapper received invalid arguments from WP for mapped hook [%s].', $event_class)
);
}
We need to use array_key_exists instead of isset in EventMapper::dispatchMappedFilter
Relevant log output
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered:
Thanks for taking the time to fill out this bug report!"
Which @snicco/* package(s) are the source of the bug?
better-wp-hooks
Is this a regression?
No
Composer dependencies
Current behaviour
A mapped WordPress hook that passes null as the first argument will throw an exception.
Expected behaviour
Null should be allowed as a first mapped argument.
How to reproduce
Possible solution
We need to use array_key_exists instead of isset in
EventMapper::dispatchMappedFilter
Relevant log output
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: