Skip to content

Commit a3ee766

Browse files
Update coding standard
1 parent 8741b95 commit a3ee766

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/Symfony/Component/HttpFoundation/StreamedJsonResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ private function stream(): void
7878
}
7979

8080
// generators should be used but for better DX all kind of Traversable and objects are supported
81-
if (is_object($item)) {
81+
if (\is_object($item)) {
8282
$generators[] = $item;
8383
$item = self::PLACEHOLDER;
8484
} elseif (self::PLACEHOLDER === $item) {

src/Symfony/Component/HttpFoundation/Tests/StreamedJsonResponseTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,6 @@ public function testPlaceholderAsObjectStructure()
173173
$this->assertSame('{"object":{"__symfony_json__":"foo","bar":"__symfony_json__"},"articles":[{"title":"Article 1"},{"title":"Article 2"},{"title":"Article 3"}]}', $content);
174174
}
175175

176-
177176
public function testResponseHeaders()
178177
{
179178
$response = new StreamedJsonResponse([], 200, ['X-Test' => 'Test']);

0 commit comments

Comments
 (0)