10.3.0 core state services changed
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3456136. -->
Reported by: [kecsot](https://www.drupal.org/user/2735135)
Related to !432
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>I've got an error after d10.3.0 update.<br>
<code>Fatal error: Uncaught TypeError: Drupal\eca\EcaState::__construct(): Argument #4 ($time) must be of type Drupal\Component\Datetime\TimeInterface, Drupal\Core\Cache\DatabaseBackend given, </code></p>
<p>services.yml changed in d10.3.0</p>
<p>from (10.2.7)</p>
<pre> state:<br> class: Drupal\Core\State\State<br> arguments: ['@keyvalue']</pre><p>to (10.3.0)</p>
<pre> <br>state:<br> class: Drupal\Core\State\State<br> arguments: ['@keyvalue', '@cache.bootstrap', '@lock']<br> tags:<br> - { name: needs_destruction }</pre><h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>We need to change the eca.services.yml</p>
<pre> eca.state:<br> class: Drupal\eca\EcaState<br> parent: state<br>- arguments: ['@cache.bootstrap', '@lock', '@datetime.time']<br>+ arguments: ['@datetime.time']</pre>
issue