Skip to content

[6.x] PHPDoc issue #130

@riccardobosini

Description

@riccardobosini

Good morning,
I'm writing cause I've the following issue.
I've a project with installed this package.
Let's suppose this code:

use Money\Currency;

$revenueA = new \Cknow\Money\Money(123, new Currency('EUR'));
$revenueB = new \Cknow\Money\Money(123, new Currency('EUR'));

$revenueTotal = $revenueA->add($revenueB);

In my case PHPStorm highlight the last row showing this message: Expected parameter of type '\Money\Money', '\Cknow\Money\Money|null' provided. It expects that the parameter passed to the add method to be of type \Money\Money.

It's annoying cause working with amounts the screen is full of warnings.

Can you please help me about this?
Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions