Add missing argument to match TransformerInterface (https://github.com/woocommerce/woocommerce-admin/pull/7071)
This commit is contained in:
parent
f5557fcceb
commit
98986796c5
|
@ -16,10 +16,11 @@ class Count implements TransformerInterface {
|
|||
*
|
||||
* @param array $value an array to count.
|
||||
* @param stdClass|null $arguments arguments.
|
||||
* @param string|null $default default value.
|
||||
*
|
||||
* @return number
|
||||
*/
|
||||
public function transform( $value, stdClass $arguments = null ) {
|
||||
public function transform( $value, stdClass $arguments = null, $default = null ) {
|
||||
return count( $value );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue