Closed ssnepenthe closed 7 years ago
Ref. ssnepenthe/soter#21.
If do_action() is called with an array containing a single object, that object is passed directly to callbacks instead of the array.
do_action()
This leads to a situation where a listener can never be certain of the type of $vulnerabilities and must add extra checks.
$vulnerabilities
So - it might be nice to have a collection object that can be used to wrap the array of vulnerabilities.
Ref. ssnepenthe/soter#21.
If
do_action()
is called with an array containing a single object, that object is passed directly to callbacks instead of the array.This leads to a situation where a listener can never be certain of the type of
$vulnerabilities
and must add extra checks.So - it might be nice to have a collection object that can be used to wrap the array of vulnerabilities.