After updating phpstan to version 1.7.1 it now gives an error for this usage:
Parameter #1 $params of method GoCardlessPro\Services\PaymentsService::create() expects string, array<string, array<string, array<string, string>|int|string>> given.
I see that create method can receive array, string[mixed] $params An associative array for any params. But i guess phpstan sees only string. Will you consider to annotate your method differently?
After updating phpstan to version 1.7.1 it now gives an error for this usage:
Parameter #1 $params of method GoCardlessPro\Services\PaymentsService::create() expects string, array<string, array<string, array<string, string>|int|string>> given.
I see that create method can receive array,
string[mixed] $params An associative array for any params
. But i guess phpstan sees onlystring
. Will you consider to annotate your method differently?https://github.com/gocardless/gocardless-pro-php/blob/31116c4a47b7815cbe25e411a1e0382e42006691/lib/Services/PaymentsService.php#L40