Skip to content

Commit

Permalink
Correct signature for Argument::in() and notIn()
Browse files Browse the repository at this point in the history
Fixes #522
  • Loading branch information
timothychoi-rg committed Mar 4, 2021
1 parent 7114670 commit 9a967ee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Prophecy/Argument.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,20 +218,20 @@ public static function approximate($value, $precision = 0)
* @return Token\InArrayToken
*/

public function in($value)
public static function in($value)
{
return new Token\InArrayToken($value);
}

/**
* Checks that argument is in array.
* Checks that argument is not in array.
*
* @param array $value
*
* @return Token\InArrayToken
* @return Token\NotInArrayToken
*/

public function notIn($value)
public static function notIn($value)
{
return new Token\NotInArrayToken($value);
}
Expand Down

0 comments on commit 9a967ee

Please sign in to comment.