Deprecated Curly Braces (#1306)

https://wiki.php.net/rfc/deprecate_curly_braces_array_access
This commit is contained in:
Lacrimosa99 2021-01-25 20:40:09 +01:00 committed by GitHub
parent d84b9592ec
commit 9fc4cbf808
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -151,7 +151,7 @@ class Buffer
{
$len = strlen($this->data);
$string = $this->data{strlen($this->data) - 1};
$string = $this->data[strlen($this->data) - 1];
$this->data = substr($this->data, 0, $len - 1);
$this->length -= 1;