πŸ‡¦πŸ‡·Argentina @Markisich

Gualeguaychu
Account created on 10 June 2019, about 5 years ago
#

Recent comments

πŸ‡¦πŸ‡·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?

Production build 0.69.0 2024