Add missing argument to match TransformerInterface (https://github.com/woocommerce/woocommerce-admin/pull/7071)

This commit is contained in:
louwie17 2021-05-25 11:56:59 -03:00 committed by GitHub
parent f5557fcceb
commit 98986796c5
1 changed files with 2 additions and 1 deletions

View File

@ -16,10 +16,11 @@ class Count implements TransformerInterface {
* *
* @param array $value an array to count. * @param array $value an array to count.
* @param stdClass|null $arguments arguments. * @param stdClass|null $arguments arguments.
* @param string|null $default default value.
* *
* @return number * @return number
*/ */
public function transform( $value, stdClass $arguments = null ) { public function transform( $value, stdClass $arguments = null, $default = null ) {
return count( $value ); return count( $value );
} }