You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calendar class uses PeriodInterface as return type for getYear, getMonth, getWeek.
Such method should return, respectively, Year, Month, Week, that are implementing \Iterator.
With the current code, a call to foreach (new Calendar)->getMonth() is marked as invalid by phpstorm ("Can not iterate PeriodInterface").
The text was updated successfully, but these errors were encountered:
Calendar class uses
PeriodInterface
as return type forgetYear
,getMonth
,getWeek
.Such method should return, respectively,
Year
,Month
,Week
, that are implementing\Iterator
.With the current code, a call to
foreach (new Calendar)->getMonth()
is marked as invalid by phpstorm ("Can not iterate PeriodInterface").The text was updated successfully, but these errors were encountered: