Commit eb5e8d5d 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
parent 456ea857
...@@ -336,7 +336,7 @@ protected function getLegacyParameters(RouteMatchInterface $route_match, $unseri ...@@ -336,7 +336,7 @@ protected function getLegacyParameters(RouteMatchInterface $route_match, $unseri
$parameters = []; $parameters = [];
// Filter out all internal parameters starting with "_". // Filter out all internal parameters starting with "_".
foreach ($route_parameters as $key => $parameter) { foreach ($route_parameters as $key => $parameter) {
if ($key{0} !== '_') { if (substr((string) $key, 0, 1) !== '_') {
$parameters[] = $parameter; $parameters[] = $parameter;
} }
} }
......
...@@ -246,7 +246,7 @@ protected function parseSearchExpression() { ...@@ -246,7 +246,7 @@ protected function parseSearchExpression() {
// Strip off phrase quotes. // Strip off phrase quotes.
$phrase = FALSE; $phrase = FALSE;
if ($match[2]{0} == '"') { if ($match[2][0] == '"') {
$match[2] = substr($match[2], 1, -1); $match[2] = substr($match[2], 1, -1);
$phrase = TRUE; $phrase = TRUE;
$this->simple = FALSE; $this->simple = FALSE;
......
...@@ -341,7 +341,7 @@ protected function opContainsWord($field) { ...@@ -341,7 +341,7 @@ protected function opContainsWord($field) {
foreach ($matches as $match) { foreach ($matches as $match) {
$phrase = FALSE; $phrase = FALSE;
// Strip off phrase quotes // Strip off phrase quotes
if ($match[2]{0} == '"') { if ($match[2][0] == '"') {
$match[2] = substr($match[2], 1, -1); $match[2] = substr($match[2], 1, -1);
$phrase = TRUE; $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