ssnepenthe / soter-core

A very basic library for interacting with the WPScan Vulnerability Database API.
GNU General Public License v2.0
0 stars 2 forks source link

Consider creating some sort of vulnerability collection class #4

Closed ssnepenthe closed 7 years ago

ssnepenthe commented 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.

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.