Skip to content

Commit

Permalink
Remove interface dependencies from psr7-plus
Browse files Browse the repository at this point in the history
  • Loading branch information
twose committed Jun 15, 2023
1 parent 4461b7a commit 2f680b6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/Message/MessagePlusInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@

use Psr\Http\Message\MessageInterface;
use Psr\Http\Message\StreamInterface;
use Swow\Object\StringableInterface;

interface MessagePlusInterface extends MessageInterface, StringableInterface
interface MessagePlusInterface extends MessageInterface
{
public const DEFAULT_PROTOCOL_VERSION = '1.1';

Expand Down
5 changes: 3 additions & 2 deletions src/Message/StreamPlusInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@
namespace Swow\Psr7\Message;

use Psr\Http\Message\StreamInterface;
use Swow\Object\StringableInterface;

use const SEEK_SET;

interface StreamPlusInterface extends StreamInterface, StringableInterface
interface StreamPlusInterface extends StreamInterface
{
public function getSize(): ?int;

Expand Down Expand Up @@ -53,4 +52,6 @@ public function getMetadata(mixed $key = null): mixed;
public function detach(): mixed;

public function close(): void;

public function toString(): string;
}
3 changes: 3 additions & 0 deletions src/Message/UploadedFilePlusInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,7 @@ public function getError(): int;
public function getClientFilename(): ?string;

public function getClientMediaType(): ?string;

/** @return array{'name': string|null, 'type': string|null, 'tmp_file': string|null, 'error': int, 'size': int|false} */
public function toArray(): array;
}

0 comments on commit 2f680b6

Please sign in to comment.