Skip to content

Commit 6e961bc

Browse files
Add missing return types to tests/internal/final methods
1 parent b2e2433 commit 6e961bc

File tree

4 files changed

+4
-16
lines changed

4 files changed

+4
-16
lines changed

CurlHttpClient.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -345,10 +345,7 @@ public function reset()
345345
$this->multi->reset();
346346
}
347347

348-
/**
349-
* @return array
350-
*/
351-
public function __sleep()
348+
public function __sleep(): array
352349
{
353350
throw new \BadMethodCallException('Cannot serialize '.__CLASS__);
354351
}

HttplugClient.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,10 +218,7 @@ public function createUri($uri): UriInterface
218218
throw new \LogicException(sprintf('You cannot use "%s()" as the "nyholm/psr7" package is not installed. Try running "composer require nyholm/psr7".', __METHOD__));
219219
}
220220

221-
/**
222-
* @return array
223-
*/
224-
public function __sleep()
221+
public function __sleep(): array
225222
{
226223
throw new \BadMethodCallException('Cannot serialize '.__CLASS__);
227224
}

Response/AmpResponse.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,7 @@ public function getInfo(string $type = null)
142142
return null !== $type ? $this->info[$type] ?? null : $this->info;
143143
}
144144

145-
/**
146-
* @return array
147-
*/
148-
public function __sleep()
145+
public function __sleep(): array
149146
{
150147
throw new \BadMethodCallException('Cannot serialize '.__CLASS__);
151148
}

Response/CommonResponseTrait.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,7 @@ public function toStream(bool $throw = true)
127127
return $stream;
128128
}
129129

130-
/**
131-
* @return array
132-
*/
133-
public function __sleep()
130+
public function __sleep(): array
134131
{
135132
throw new \BadMethodCallException('Cannot serialize '.__CLASS__);
136133
}

0 commit comments

Comments
 (0)