From f0cff097683409989d823a7b1e45fdb7d42df2e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Mon, 20 Nov 2023 23:39:12 +0100 Subject: [PATCH] fix phpstan (#26772) * fix phpstan * Update server_order.php --- htdocs/webservices/server_order.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/webservices/server_order.php b/htdocs/webservices/server_order.php index b6ded243233..ec9b46c49a2 100644 --- a/htdocs/webservices/server_order.php +++ b/htdocs/webservices/server_order.php @@ -374,7 +374,7 @@ $server->register( * @param string $ref_ext Ref_ext * @return array Array result */ -function getOrder($authentication, $id = '', $ref = '', $ref_ext = '') +function getOrder($authentication, $id = 0, $ref = '', $ref_ext = '') { global $db, $conf; @@ -806,7 +806,7 @@ function createOrder($authentication, $order) * @param int $id_warehouse Id of warehouse to use for stock decrease * @return array Array result */ -function validOrder($authentication, $id = '', $id_warehouse = 0) +function validOrder($authentication, $id = 0, $id_warehouse = 0) { global $db, $conf, $langs;