RCPL / polaris-api

A PHP class built for interacting with the Polaris API. Polaris is a product from Innovative Interfaces.
13 stars 2 forks source link

Type error #4

Open shoutbomb opened 5 years ago

shoutbomb commented 5 years ago

Hello, I am a third party supporting a library. Using your example.php to validate some changes I would like to make. Providing all the 'client' parameters for a typical staff user, I encountered the following when running step 3 "Get the customer's preferred branch location & "patron ID" using PatronSearch"

Fatal error: Uncaught TypeError: Argument 1 passed to RCPL\Polaris\Controller\Patron::search() must be of the type array, float given, called in \polaris-api\example.php on line 56 and defined in \polaris-api\src\Controller\Patron.php on line 114

TypeError: Argument 1 passed to RCPL\Polaris\Controller\Patron::search() must be of the type array, float given, called in \polaris-api\example.php on line 56 in \polaris-api\src\Controller\Patron.php on line 114

attheshow commented 5 years ago

Try changing that line in example.php to say "searchByBarcode" instead of "search".