Skip to content

Commit

Permalink
Lint files
Browse files Browse the repository at this point in the history
  • Loading branch information
titouanmathis committed Mar 8, 2024
1 parent d423aa4 commit 90baa9e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 2 additions & 1 deletion src/TransientCleaner.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 90baa9e

Please sign in to comment.