trustly / trustly-client-php

Trustly API PHP Client implementation
MIT License
18 stars 28 forks source link

Remove NBSP (U+00A0) character which breaks method type hinting #17

Closed asilgalis closed 8 months ago

asilgalis commented 5 years ago

Method Trustly_Api_Signed->accountPayout(...) did not work for php v7.2 (probably other versions too) because of this character being identified as a type hint for $currency argument.

eventhorizonpl commented 4 years ago

@anders-trustly

I've hit exactly the same problem

  Type error: Argument 6 passed to Trustly_Api_Signed::accountPayout() must be an instance of  , string given, called in /home/michal/projects/somtel-api/
  src/MS/TrustlyBundle/Service/TrustlyService.php on line 116

Can this be merged?

Best regards, Michal