Commit 34218a91 authored by alexpott's avatar alexpott

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

(cherry picked from commit eb5e8d5d)
parent ca429486
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment