Skip to content
Snippets Groups Projects
Unverified Commit eb5e8d5d authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3104420 by peterkokot, mondrake: PHP 7.4 Deprecated curly brace syntax...

Issue #3104420 by peterkokot, mondrake: PHP 7.4 Deprecated curly brace syntax for accessing array elements
parent 456ea857
No related branches found
No related tags found
6 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!1012Issue #3226887: Hreflang on non-canonical content pages,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10,!596Issue #3046532: deleting an entity reference field, used in a contextual view, makes the whole site unrecoverable,!496Issue #2463967: Use .user.ini file for PHP settings,!144Issue #2666286: Clean up menu_ui to conform to Drupal coding standards
......@@ -336,7 +336,7 @@ protected function getLegacyParameters(RouteMatchInterface $route_match, $unseri
$parameters = [];
// Filter out all internal parameters starting with "_".
foreach ($route_parameters as $key => $parameter) {
if ($key{0} !== '_') {
if (substr((string) $key, 0, 1) !== '_') {
$parameters[] = $parameter;
}
}
......
......@@ -246,7 +246,7 @@ protected function parseSearchExpression() {
// Strip off phrase quotes.
$phrase = FALSE;
if ($match[2]{0} == '"') {
if ($match[2][0] == '"') {
$match[2] = substr($match[2], 1, -1);
$phrase = TRUE;
$this->simple = FALSE;
......
......@@ -341,7 +341,7 @@ protected function opContainsWord($field) {
foreach ($matches as $match) {
$phrase = FALSE;
// Strip off phrase quotes
if ($match[2]{0} == '"') {
if ($match[2][0] == '"') {
$match[2] = substr($match[2], 1, -1);
$phrase = TRUE;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment