Skip to content

Commit

Permalink
Fix phpstan issue
Browse files Browse the repository at this point in the history
  • Loading branch information
unfulvio-godaddy committed Dec 26, 2022
1 parent 064d67c commit d2ecd6f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions php/WP_Mock/Functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace WP_Mock;

use Exception;
use Hamcrest\Core\AnyOf;
use InvalidArgumentException;
use Mockery;

Expand Down Expand Up @@ -88,14 +89,13 @@ public function register(string $function, array $arguments = [])
}

/**
* Sets up an argument placeholder that allows it to be any of an enumerated
* list of possibilities
* Sets up an argument placeholder that allows it to be any of an enumerated list of possibilities.
*
* @return \Mockery\Matcher\anyOf
* @return Mockery\Matcher\AnyOf|mixed
*/
public static function anyOf()
{
return call_user_func_array(array( '\\Mockery', 'anyOf' ), func_get_args());
return call_user_func_array(['\\Mockery', 'anyOf'], func_get_args());
}

/**
Expand Down

0 comments on commit d2ecd6f

Please sign in to comment.