diff --git a/phpstan.neon b/phpstan.neon index e94f403..12467c4 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -11,5 +11,5 @@ parameters: paths: - ./src/ ignoreErrors: - - message: '#^Parameter \#1 \$value of method\.#' + - message: '#^Action callback returns bool but should not return anything\.$#' path: ./src/TransientCleaner.php diff --git a/src/TransientCleaner.php b/src/TransientCleaner.php index 1ddbf76..04f0d91 100644 --- a/src/TransientCleaner.php +++ b/src/TransientCleaner.php @@ -198,10 +198,11 @@ public function set_stored_transients($value) : TransientCleaner * * @param array|bool $value New value. * @param array|bool $old_value Old value. + * @param string $option Option name. * * @return array|bool New value */ - public function merge_stored_transients_option_values($value, $old_value) + public function merge_stored_transients_option_values($value, $old_value, $option) { // Return `$value` if no previous value. if (false === $old_value) {