Skip to content

Commit

Permalink
fix phpstan (#28412)
Browse files Browse the repository at this point in the history
Property CommonObject::$shipping_method_id (int) does not accept string.
  • Loading branch information
frederic34 authored Feb 25, 2024
1 parent a1d90ad commit 7374dd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/reception/class/reception.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -937,7 +937,7 @@ public function update($user = null, $notrigger = 0)
$this->fk_user_valid = trim($this->fk_user_valid);
}
if (isset($this->shipping_method_id)) {
$this->shipping_method_id = trim($this->shipping_method_id);
$this->shipping_method_id = (int) $this->shipping_method_id;
}
if (isset($this->tracking_number)) {
$this->tracking_number = trim($this->tracking_number);
Expand Down

0 comments on commit 7374dd9

Please sign in to comment.