Here for the community? On May 9th, we'll be in New Orleans. Don’t miss out!
Part of #1998638: Replace almost all remaining superglobals ($_GET, $_POST, etc.) with Symfony Request object
Files that need converting are:
Looks good. RTBC from me.
Committed b90377b and pushed to 8.x. Thanks!
For future reference, PHP's count() function is only useful if you want to know the specific number of items of a thing you know is countable.
Because if you call count(NULL), it will return 1. Yes. I'm serious, it's awful.
This whole thing was already fixed in #1984702: Convert menu.module's page callbacks to Controllers, I'll just reroll that.
Automatically closed -- issue fixed for 2 weeks with no activity.
Drupal is a registered trademark of Dries Buytaert.