The method signature for ActionScheduler_DBStore::bulk_cancel_actions()
is different than its parent class
#998
Labels
priority: normal
The issue/PR is normal priority—not many people are affected or there’s a workaround, etc.
type: enhancement
The issue is a request for an enhancement.
In
ActionScheduler_DBStore::bulk_cancel_actions()
the method takes one argument,$query_args
, described like this in the doc block:In the parent class that
ActionScheduler_DBStore
extends,ActionScheduler_Store
, the same method also takes one argument,$action_ids
, described as:Now, since in both cases there is one argument and it is expected to be an array, I'm not sure if there are compatibility issues with newer versions of PHP (8.1+). However, this still seems problematic because the contents of the arrays are very different. In one we have an associative array of key/value pairs that define the arguments for a query. In the other we have an indexed array of integers (action IDs) that are the result of already having run that query. At the very least this is confusing to anyone who is trying to understand what
ActionScheduler_DBStore
inherits from its parent class, and how they should extend that parent class if they were to create another custom store.The text was updated successfully, but these errors were encountered: