Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Correct return type-hint in Real::toInteger * Correct return type-hint for Integer::toReal ``` ERROR: InvalidMethodCall - php/Foo/Bar/Baz.php:63:57 - Cannot call method on float variable (see https://psalm.dev/091) $this->chargeAmount->getAmount()->toReal()->toNative(), ``` * Correct construtor type-hint in Money clas ``` ERROR: InvalidArgument - php/Foo/Bar/Baz.php:564:38 - Argument 1 of ValueObjects\Money\Money::__construct expects int, ValueObjects\Number\Integer provided (see https://psalm.dev/004) $lowestMoney = new Money(new Integer((int)$lowestPrice), new Currency($this->catalog->getCurrencyCode())); ```
- Loading branch information
Showing
3 changed files
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters