iCal icon indicating copy to clipboard operation
iCal copied to clipboard

Psalm error when trying to create a date object

Open LordSimal opened this issue 2 years ago • 0 comments

I get the following error on psalm level 3

Constructor Eluceo\iCal\Domain\ValueObject\PointInTime::__construct is internal to Eluceo but called from App\Controller\StandByEntriesController::myStandByIcal

see https://psalm.dev/175

when doing

new \Eluceo\iCal\Domain\ValueObject\SingleDay(new \Eluceo\iCal\Domain\ValueObject\Date($myDateObject));

It seems psalm has a problem with the fact, that https://github.com/markuspoerschke/iCal/blob/2.13.0/src/Domain/ValueObject/PointInTime.php#L20 is marked as internal

Used versions: PHP: 8.3.0 eluceo/ical: 2.13.0 vimeo/psalm: 5.18.0

LordSimal avatar Jan 02 '24 15:01 LordSimal