From ad0732494096a7ff92a195382cf081080cc529c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Bar=C3=A1=C5=A1ek?= Date: Mon, 21 Dec 2020 18:39:32 +0100 Subject: [PATCH] authOrders(): Better typehint --- src/BaseAuthorizator.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/BaseAuthorizator.php b/src/BaseAuthorizator.php index b0a668b..7167288 100644 --- a/src/BaseAuthorizator.php +++ b/src/BaseAuthorizator.php @@ -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 {