Hello,
i have a problem for update stock.... and with newest serializer also paging orders error
using:
php 8.2
billbee/billbee-api 2.2.1
jms/serializer 3.30
guzzlehttp/guzzle 7.8.1
also if i used newest version of jms/serializer i get the error for orders:
PHP Fatal error: Uncaught TypeError: BillbeeDe\BillbeeAPI\Response\BaseResponse::getPaging(): Return value must be of type array, null returned
Here how i fixed the issues and also warnings:
-
donwgrade jms/serializer to 3.28
-
/customClient.php on line 41
replace: $body = $options['body'] ?? null;
with $body = $options['body'] ?? '';
-
in file /Model/stock.php
replace all protected with public
example: protected $sku; to: public $sku;
-
in File /Response/UpdateStockResponse.php
i removed line 21
* @var array<array{SKU: ?string, OldStock: ?float, CurrentStock: ?float, UnfulfilledAmount: ?float, Message: string}>
so the response will display corrctly
maybe anyone can check this and update the SDK
Hello,
i have a problem for update stock.... and with newest serializer also paging orders error
using:
php 8.2
billbee/billbee-api 2.2.1
jms/serializer 3.30
guzzlehttp/guzzle 7.8.1
also if i used newest version of jms/serializer i get the error for orders:
PHP Fatal error: Uncaught TypeError: BillbeeDe\BillbeeAPI\Response\BaseResponse::getPaging(): Return value must be of type array, null returned
Here how i fixed the issues and also warnings:
donwgrade jms/serializer to 3.28
/customClient.php on line 41
replace:
$body = $options['body'] ?? null;with
$body = $options['body'] ?? '';in file /Model/stock.php
replace all protected with public
example:
protected $sku;to:public $sku;in File /Response/UpdateStockResponse.php
i removed line 21
* @var array<array{SKU: ?string, OldStock: ?float, CurrentStock: ?float, UnfulfilledAmount: ?float, Message: string}>so the response will display corrctly
maybe anyone can check this and update the SDK