HttpKernelInterface::handle return type breaks middlewares
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3403205. --> Reported by: [ghost of drupal past](https://www.drupal.org/user/3619592) >>> <h2>Drupal version</h2> <p>10.1</p> <h2>Drupal Rector version</h2> <p>0.18.1</p> <h2>Problem / Motivation</h2> <p>HttpKernelInterface::handle has a return type now where it didn't in D9. This means if you have a kernel middleware you end up with a fatal. See <a href="https://github.com/symfony/http-kernel/blob/512447e684065c04743a5bcce91f0e9f83b23153/HttpKernelInterface.php#L45">https://github.com/symfony/http-kernel/blob/512447e684065c04743a5bcce91f0e9f83b23153/HttpKernelInterface.php#L45</a> and 4.4 was <a href="https://github.com/symfony/http-kernel/blob/ad8ab192cb619ff7285c95d28c69b36d718416c7/HttpKernelInterface.php#L41">https://github.com/symfony/http-kernel/blob/ad8ab192cb619ff7285c95d28c69b36d718416c7/HttpKernelInterface.php#L41</a></p>
issue