fix phpstan (#26772)

* fix phpstan

* Update server_order.php
This commit is contained in:
Frédéric FRANCE 2023-11-20 23:39:12 +01:00 committed by GitHub
parent eb0eac0dfa
commit f0cff09768
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;