It seems like $dateTimeFirst can also be of type false; however, parameter $date of Artack\Dsn\Field\DateField::__construct() does only seem to accept DateTimeInterface, maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
32
$dateField = new DateField('name', /** @scrutinizer ignore-type */ $dateTimeFirst);
It seems like $dateTimeSecond can also be of type false; however, parameter $dateTime of Artack\Dsn\Field\DateField::setDateTime() does only seem to accept DateTimeInterface, maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation