Trying to access array offset on value of type bool api.parser.inc:2026
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3164926. -->
Reported by: [micahw156](https://www.drupal.org/user/40138)
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>While parsing, this error occurs:</p>
<blockquote><p>Trying to access array offset on value of type bool api.parser.inc:2026</p></blockquote>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<p>Execute api update with drush -vd options.</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>It looks like the problem is when $state['invoke_call'] get set to FALSE in line 2027, this is no longer an array, and therefore fails array comparisons.</p>
<p>Checking to see if (isset($state['invoke_call'][1])) should solve the problem, since that's the actual value that needs to be compared in 2026.</p>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
<p>I'm testing now, and will provide a patch tomorrow.</p>
<h3 id="summary-ui-changes">User interface changes</h3>
<p>None.</p>
<h3 id="summary-api-changes">API changes</h3>
<p>None.</p>
<h3 id="summary-data-model-changes">Data model changes</h3>
<p>None.</p>
issue