Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
abdelmajied94abusuliman committed Feb 11, 2025
1 parent 1ce7ada commit 324107b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Data/Schemas/WeightSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function asMass(): Mass

if($this->unit === 'g') {
$this->unit = 'kg';
$this->value = $this->value / 1000;
$this->value = (float) $this->value / 1000;

Check failure on line 27 in src/Data/Schemas/WeightSchema.php

View workflow job for this annotation

GitHub Actions / build-test

Property Jasara\AmznSPA\Data\Schemas\WeightSchema::$value (string) does not accept float.

Check failure on line 27 in src/Data/Schemas/WeightSchema.php

View workflow job for this annotation

GitHub Actions / build-test

Property Jasara\AmznSPA\Data\Schemas\WeightSchema::$value (string) does not accept float.
}

if($this->unit === 'LB') {
Expand Down

0 comments on commit 324107b

Please sign in to comment.