We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a2b4e7c + fff9842 commit b9e83a8Copy full SHA for b9e83a8
src/Cartable.php
@@ -4,5 +4,5 @@
4
5
interface Cartable
6
{
7
- public function getPrice(): int;
+ public function getPrice(): float;
8
}
tests/SetUp/Models/Product.php
@@ -17,8 +17,8 @@ class Product extends Model implements Cartable
17
/**
18
* Get the correct price.
19
*/
20
- public function getPrice(): int
+ public function getPrice(): float
21
22
- return $this->price;
+ return (float) $this->price;
23
24
0 commit comments