Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nicolasderouet opened this issue May 25, 2020 · 1 comment
Open

Comments

@nicolasderouet
Copy link

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];
  }
}
@DavidGoodwin
Copy link

see also #1082

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants