Skip to content
This repository was archived by the owner on Nov 12, 2021. It is now read-only.

Commit ff0579a

Browse files
committed
SplFixedByteArray: do not use curly braces for string offsets, fiz build failure on 7.4
1 parent f5eeecf commit ff0579a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/SplFixedByteArray.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ public static function fromString($str, $convert = false){
6464

6565
if($convert){
6666
for($i = 0; $i < $len; ++$i){
67-
$ob[$i] = ord($str{$i});
67+
$ob[$i] = ord($str[$i]);
6868
}
6969
}else{
7070
for($i = 0; $i < $len; ++$i){
71-
$ob[$i] = $str{$i};
71+
$ob[$i] = $str[$i];
7272
}
7373
}
7474

@@ -88,11 +88,11 @@ public static function fromStringChunk($str, $size, $start = 0, $convert = false
8888

8989
if($convert){
9090
for($i = 0; $i < $size; ++$i){
91-
$ob[$i] = ord($str{$i + $start});
91+
$ob[$i] = ord($str[$i + $start]);
9292
}
9393
}else{
9494
for($i = 0; $i < $size; ++$i){
95-
$ob[$i] = $str{$i + $start};
95+
$ob[$i] = $str[$i + $start];
9696
}
9797
}
9898

0 commit comments

Comments
 (0)