TypeError: _calc_indents(): Argument #4 ($item) must be of type Drupal\calendar\CalendarEvent, array given
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3542133. -->
Reported by: [ramil g](https://www.drupal.org/user/133684)
Related to !64
>>>
<blockquote><p>TypeError: _calc_indents(): Argument #4 ($item) must be of type Drupal\calendar\CalendarEvent, array given</p></blockquote>
<p>In the current version of the code, this argument is enforced as a CalendarEvent instead of an array. This is the opposite of the behavior described in issue: <a href="https://www.drupal.org/project/calendar/issues/3175873">https://www.drupal.org/project/calendar/issues/3175873</a></p>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<p>Go to a calendar page, then go to the week view.</p>
issue