Skip to content

Commit 14babeb

Browse files
bug symfony#57564 [HttpClient] Fix initializing InformationalChunk (nicolas-grekas)
This PR was merged into the 7.1 branch. Discussion ---------- [HttpClient] Fix initializing InformationalChunk | Q | A | ------------- | --- | Branch? | 7.1 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | Fix symfony#57563 | License | MIT We introduced this regression when we moved DataChunk to CPP: we removed their defaults from properties when doing so. CPP is dangerous! Commits ------- faf42b2 [HttpClient] Fix initializing InformationalChunk
2 parents 8650176 + faf42b2 commit 14babeb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Symfony/Component/HttpClient/Chunk/InformationalChunk.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ class InformationalChunk extends DataChunk
2323
public function __construct(int $statusCode, array $headers)
2424
{
2525
$this->status = [$statusCode, $headers];
26+
27+
parent::__construct();
2628
}
2729

2830
public function getInformationalStatus(): ?array

0 commit comments

Comments
 (0)