Rule for KernelEvent::isMasterRequest() is deprecated
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3304344. -->
Reported by: [mglaman](https://www.drupal.org/user/2416470)
>>>
<h2>Drupal version</h2>
<p>9.2.0</p>
<h2>Problem / Motivation</h2>
<p><a href="https://www.drupal.org/node/3212750">https://www.drupal.org/node/3212750</a></p>
<blockquote><p>The method Symfony\Component\HttpKernel\Event\KernelEvent::isMasterRequest() is deprecated in Symfony 5.3. The method has been replaced by Symfony\Component\HttpKernel\Event\KernelEvent::isMainRequest(). In Drupal 9 we are using Symfony 4. In Drupal 10 we are wanting to use Symfony 6, therefore we need to add the deprecations of Symfony 5 in Drupal 9.</p></blockquote>
<p>The deprecation isn't caught because it's only a runtime error</p>
<pre>+ /**<br>+ * Checks if this is a master request.<br>+ *<br>+ * @return bool True if the request is a master request<br>+ */<br>+ public function isMasterRequest()<br>+ {<br>+ @trigger_error('Symfony\Component\HttpKernel\Event\KernelEvent::isMasterRequest() is deprecated, use isMainRequest()', E_USER_DEPRECATED);<br>+ return HttpKernelInterface::MASTER_REQUEST === $this->requestType;<br>+ }</pre>
issue