Fix PHPStan issues on AI Chatbot
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3563397. --> Reported by: [marcus_johansson](https://www.drupal.org/user/385947) Related to !1060 >>> <p>[Tracker]<br> <strong>Update Summary: </strong>[One-line status update for stakeholders]<br> <strong>Short Description: </strong>[One-line issue summary for stakeholders]<br> <strong>Check-in Date: </strong>MM/DD/YYYY<br> <em>Metadata is used by the <a href="https://www.drupalstarforge.ai/" title="AI Tracker">AI Tracker.</a> Docs and additional fields <a href="https://www.drupalstarforge.ai/ai-dashboard/docs" title="AI Issue Tracker Documentation">here</a>.</em><br> [/Tracker]</p> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>In 2.0.x we have upped the phpstan level to 7, this has added a lot of issues that needs to be resolved. We will fix these in steps.</p> <p>This issue will make sure that AI Chatbot is fixed.</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Fix all the phpstan issues in AI Chatbot for 2.x.</p> > Related issue: [Issue #3558757](https://www.drupal.org/node/3558757)
issue