iCal
iCal copied to clipboard
Psalm error when trying to create a date object
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