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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
      }
    }
+1 −1
Original line number Diff line number Diff line
@@ -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;
+1 −1
Original line number Diff line number Diff line
@@ -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;
      }