Skip to content

Conversation

@W0rma
Copy link
Contributor

@W0rma W0rma commented Jan 10, 2026

Using null as an array offset or when calling array_key_exists() is now deprecated. Instead an empty string should be used.

https://www.php.net/manual/en/migration85.deprecated.php#migration85.deprecated.core.using-null-as-an-array-offset

@W0rma W0rma marked this pull request as ready for review January 10, 2026 12:20
Comment on lines +44 to +48
$route = $event->getRequest()->attributes->get('_route');
if (null === $route) {
$route = '';
}
if (isset($allowedMethods[$route])) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

null is interpreted as empty string in lower PHP versions as well: https://3v4l.org/kkPK5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant