Skip to content

Commit

Permalink
nullref fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubmisek committed Aug 16, 2024
1 parent 9ec657a commit a2a5080
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Peachpie.Runtime/PhpString.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1127,7 +1127,7 @@ public void GetChars(Encoding encoding, StringBuilder builder)
{
if (chunks is object[] objs)
{
foreach (var obj in objs.AsSpan())
foreach (var obj in objs.AsSpan(0, _chunksCount))
{
ChunkToString(encoding, builder, chunk: obj);
}
Expand Down

0 comments on commit a2a5080

Please sign in to comment.