Skip to content

Commit

Permalink
authOrders(): Better typehint
Browse files Browse the repository at this point in the history
  • Loading branch information
janbarasek authored Dec 21, 2020
1 parent 49d7f2a commit ad07324
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/BaseAuthorizator.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ abstract class BaseAuthorizator implements Authorizator
{

/**
* @param int[]|float[] $unauthorizedVariables -> key is variable, value is expected price.
* @param callable $callback with first argument of type Transaction.
* @param int[]|float[] $unauthorizedVariables (variable => expectedPrice)
* @param callable&(callable(Transaction): void)[]; $callback with first argument of type Transaction.
*/
public function authOrders(array $unauthorizedVariables, callable $callback, string $currency = 'CZK', float $tolerance = 1.0): void
{
Expand Down

0 comments on commit ad07324

Please sign in to comment.