Add phpstan (max PHP version) job
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3437397. -->
Reported by: [mscieszka](https://www.drupal.org/user/3728910)
Related to !169
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>Currently, there are <code>composer (max PHP version)</code>, <code>nightwatch (max PHP version)</code>, <code>phpunit (max PHP version)</code> jobs. PHPStan job can also benefit from using the newer PHP version as the output of the analysis can differ between major PHP versions (for example PHP 8.1 vs PHP 8.2).</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Create a new <code>phpstan (max PHP version)</code> job.<br>
Update documentation in <a href="https://project.pages.drupalcode.org/gitlab_templates/jobs/#when-do-the-jobs-run">https://project.pages.drupalcode.org/gitlab_templates/jobs/#when-do-the-jobs-run</a>.<br>
Expand "You can also run the PHPStan job and the tests jobs against previous and/or future versions of Drupal." part of the <a href="https://www.drupal.org/project/gitlab_templates">https://www.drupal.org/project/gitlab_templates</a> page.</p>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
<p>None.</p>
<h3 id="summary-ui-changes">User interface changes</h3>
<p>When <code>OPT_IN_TEST_MAX_PHP = 1</code> is set in the <em>.gitlab-ci.yml</em>, a new phpstan job appears that uses the <code>$CORE_PHP_MAX</code> version of PHP.</p>
issue