Issues (10)

src/Entity/Payment.php (1 issue)

Labels
Severity
1
<?php
2
3
namespace Lendable\GoCardlessEnterpriseBundle\Entity;
4
5
class Payment extends \Lendable\GoCardlessEnterprise\Model\Payment
6
{
7
    public function fromArray($data)
8
    {
9
        parent::fromArray($data);
10
        $this->setCreatedAt(new \DateTime($this->getCreatedAt()));
0 ignored issues
show
new DateTime($this->getCreatedAt()) of type DateTime is incompatible with the type string expected by parameter $createdAt of Lendable\GoCardlessEnter...l\Model::setCreatedAt(). ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

10
        $this->setCreatedAt(/** @scrutinizer ignore-type */ new \DateTime($this->getCreatedAt()));
Loading history...
11
    }
12
}
13