Skip to content

Commit 398cdd8

Browse files
committed
Rename stub methods
1 parent 2fdd7e6 commit 398cdd8

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

src/Request.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ public function __construct(
141141
* @param InMethodType $method
142142
*
143143
* @return OutMethodType
144+
*
145+
* @internal This method is not covered by the backward compatibility promise for boson-php/http
144146
*/
145147
public static function castMethod(\Stringable|string $method): MethodInterface
146148
{
@@ -151,6 +153,8 @@ public static function castMethod(\Stringable|string $method): MethodInterface
151153
* @param InUrlType $url
152154
*
153155
* @return OutUrlType
156+
*
157+
* @internal This method is not covered by the backward compatibility promise for boson-php/http
154158
*/
155159
public static function castUrl(\Stringable|string $url): UriInterface
156160
{
@@ -164,6 +168,8 @@ public static function castUrl(\Stringable|string $url): UriInterface
164168
*
165169
* @return OutHeadersType
166170
* @throws InvalidHeadersException
171+
*
172+
* @internal This method is not covered by the backward compatibility promise for boson-php/http
167173
*/
168174
public static function castHeaders(iterable $headers): HeadersInterface
169175
{
@@ -175,6 +181,8 @@ public static function castHeaders(iterable $headers): HeadersInterface
175181
*
176182
* @return OutBodyType
177183
* @throws InvalidBodyException
184+
*
185+
* @internal This method is not covered by the backward compatibility promise for boson-php/http
178186
*/
179187
public static function castBody(\Stringable|string $body): string
180188
{

src/Response.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ public function __construct(
119119
*
120120
* @return OutMutableBodyType
121121
* @throws InvalidBodyException
122+
*
123+
* @internal This method is not covered by the backward compatibility promise for boson-php/http
122124
*/
123125
public static function castBody(\Stringable|string $body): string
124126
{
@@ -130,6 +132,8 @@ public static function castBody(\Stringable|string $body): string
130132
* @param string|null $reason Reason phrase for new non-standard status-code
131133
*
132134
* @return OutMutableStatusCodeType
135+
*
136+
* @internal This method is not covered by the backward compatibility promise for boson-php/http
133137
*/
134138
public static function castStatusCode(StatusCodeInterface|int $status, ?string $reason = null): StatusCodeInterface
135139
{
@@ -141,6 +145,8 @@ public static function castStatusCode(StatusCodeInterface|int $status, ?string $
141145
*
142146
* @return OutMutableHeadersType
143147
* @throws InvalidHeadersException
148+
*
149+
* @internal This method is not covered by the backward compatibility promise for boson-php/http
144150
*/
145151
public static function castHeaders(iterable $headers): MutableHeadersInterface
146152
{

0 commit comments

Comments
 (0)