🇦🇷Argentina Markisich Gualeguaychu
Apparently as of php 8.1 the current() function no longer supports an object as parameter, you can try the following:
$route_params = current((array) \Drupal::routeMatch()->getParameters());
🇦🇷Argentina Markisich Gualeguaychu
Hi, I was 2 weeks with this issue, looking for problem in cache and reverse proxy, until I found this post.
I had a space in a custom module in front of <?php
the version of drupal i'm using drupal 9.5.11
I would like to know if the problem is Drupal, symfony or PHP?