Skip to content

runtime/lib/util/BasePeer.php:500-503 gives warnings in PHP7.4 #1084

@nicolasderouet

Description

@nicolasderouet

PHP Deprecated: Array and string offset access syntax with curly braces is deprecated

Fix: runtime/lib/util/BasePeer.php line 399 to 405
From:

for ($r = 0, $len = strlen($raw); $r < $len; $r++) {
  if ($raw{$r} == '?') {
    $rawcvt .= ':p' . $p++;
  } else {
    $rawcvt .= $raw{$r};
  }
}

To:

for ($r = 0, $len = strlen($raw); $r < $len; $r++) {
  if ($raw[$r] == '?') {
    $rawcvt .= ':p' . $p++;
  } else {
    $rawcvt .= $raw[$r];
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions