Skip to content

Ensure type hinting for the parameter is set to float#16

Open
dezertdezine wants to merge 1 commit intoRichardds:masterfrom
dezertdezine:fix-type-hinting
Open

Ensure type hinting for the parameter is set to float#16
dezertdezine wants to merge 1 commit intoRichardds:masterfrom
dezertdezine:fix-type-hinting

Conversation

@dezertdezine
Copy link

Type hinting for the amount parameter has been changed to float in the following methods:
toEuro
convert
toForeign

* @param float $amount
* @param string|array $currency_code
* @param int|null $round
* @return int|array
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also change the function return type (incl. docblock). Same in convert and toForeign please.

@Richardds
Copy link
Owner

Hello @dezertdezine ,
Thank you for your contribution. Please have a look at my review comment.

Richard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants