-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #230 from mrtus/patch-1
Loosen `psr/http-message` version to allow `^2.0`
- Loading branch information
Showing
4 changed files
with
130 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,46 @@ | ||
parameters: | ||
ignoreErrors: | ||
- | ||
message: "#^Method Dummy\\\\StringStream\\:\\:eof\\(\\) should return bool but return statement is missing\\.$#" | ||
count: 1 | ||
path: tests/Dummy/StringStream.php | ||
|
||
- | ||
message: "#^Method Dummy\\\\StringStream\\:\\:getContents\\(\\) should return string but return statement is missing\\.$#" | ||
count: 1 | ||
path: tests/Dummy/StringStream.php | ||
|
||
- | ||
message: "#^Method Dummy\\\\StringStream\\:\\:getSize\\(\\) should return int\\|null but return statement is missing\\.$#" | ||
count: 1 | ||
path: tests/Dummy/StringStream.php | ||
|
||
- | ||
message: "#^Method Dummy\\\\StringStream\\:\\:isReadable\\(\\) should return bool but return statement is missing\\.$#" | ||
count: 1 | ||
path: tests/Dummy/StringStream.php | ||
|
||
- | ||
message: "#^Method Dummy\\\\StringStream\\:\\:isSeekable\\(\\) should return bool but return statement is missing\\.$#" | ||
count: 1 | ||
path: tests/Dummy/StringStream.php | ||
|
||
- | ||
message: "#^Method Dummy\\\\StringStream\\:\\:isWritable\\(\\) should return bool but return statement is missing\\.$#" | ||
count: 1 | ||
path: tests/Dummy/StringStream.php | ||
|
||
- | ||
message: "#^Method Dummy\\\\StringStream\\:\\:read\\(\\) should return string but return statement is missing\\.$#" | ||
count: 1 | ||
path: tests/Dummy/StringStream.php | ||
|
||
- | ||
message: "#^Method Dummy\\\\StringStream\\:\\:tell\\(\\) should return int but return statement is missing\\.$#" | ||
count: 1 | ||
path: tests/Dummy/StringStream.php | ||
|
||
- | ||
message: "#^Method Dummy\\\\StringStream\\:\\:write\\(\\) should return int but return statement is missing\\.$#" | ||
count: 1 | ||
path: tests/Dummy/StringStream.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Dummy; | ||
|
||
use Psr\Http\Message\StreamInterface; | ||
|
||
final class StringStream implements StreamInterface | ||
{ | ||
/** | ||
* @var string | ||
*/ | ||
private $value; | ||
|
||
public function __construct(string $value) | ||
{ | ||
$this->value = $value; | ||
} | ||
|
||
public function __toString(): string | ||
{ | ||
return $this->value; | ||
} | ||
|
||
public function close(): void | ||
{ | ||
} | ||
|
||
public function detach() | ||
{ | ||
} | ||
|
||
public function getSize(): ?int | ||
{ | ||
} | ||
|
||
public function tell(): int | ||
{ | ||
} | ||
|
||
public function eof(): bool | ||
{ | ||
} | ||
|
||
public function isSeekable(): bool | ||
{ | ||
} | ||
|
||
public function seek(int $offset, int $whence = SEEK_SET): void | ||
{ | ||
} | ||
|
||
public function rewind(): void | ||
{ | ||
} | ||
|
||
public function isWritable(): bool | ||
{ | ||
} | ||
|
||
public function write(string $string): int | ||
{ | ||
} | ||
|
||
public function isReadable(): bool | ||
{ | ||
} | ||
|
||
public function read(int $length): string | ||
{ | ||
} | ||
|
||
public function getContents(): string | ||
{ | ||
} | ||
|
||
public function getMetadata(?string $key = null) | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters