Skip to content

Commit 1156a88

Browse files
Add some missing return types to internal/final classes
1 parent 6e961bc commit 1156a88

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

Chunk/ErrorChunk.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,7 @@ public function didThrow(bool $didThrow = null): bool
120120
return $this->didThrow;
121121
}
122122

123-
/**
124-
* @return array
125-
*/
126-
public function __sleep()
123+
public function __sleep(): array
127124
{
128125
throw new \BadMethodCallException('Cannot serialize '.__CLASS__);
129126
}

Response/TraceableResponse.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,7 @@ public function __construct(HttpClientInterface $client, ResponseInterface $resp
4444
$this->event = $event;
4545
}
4646

47-
/**
48-
* @return array
49-
*/
50-
public function __sleep()
47+
public function __sleep(): array
5148
{
5249
throw new \BadMethodCallException('Cannot serialize '.__CLASS__);
5350
}

0 commit comments

Comments
 (0)