Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4.9 #15

Merged
merged 9 commits into from
May 30, 2024
Merged

4.9 #15

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,15 @@
"ext-curl": "*",
"ext-json": "*",
"byjg/uri": "4.9.*",
"psr/http-message": "1.0.*",
"psr/http-message": "^1.0|^2.0",
"psr/http-client": "^1.0"
},
"require-dev": {
"phpunit/phpunit": "^9.5"
},
"provide": {
"psr/http-client-implementation": "1.0",
"psr/http-message-implementation": "1.0"
},
"license": "MIT"
}
33 changes: 17 additions & 16 deletions src/Psr7/NullStream.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ function addFilter($filter)
// TODO: Implement addFilter() method.
}

public function __toString()
public function __toString(): string
{
return "";
}

public function close()
public function close(): void
{
// TODO: Implement close() method.
}
Expand All @@ -33,57 +33,58 @@ public function detach()
// TODO: Implement detach() method.
}

public function getSize()
public function getSize(): ?int
{
return 0;
}

public function tell()
public function tell(): int
{
return 0;
}

public function eof()
public function eof(): bool
{
return true;
}

public function isSeekable()
public function isSeekable(): bool
{
return true;
}

public function seek($offset, $whence = SEEK_SET)
public function seek($offset, $whence = SEEK_SET): void
{
return 0;
// TODO: Implement seek() method.
}

public function rewind()
public function rewind(): void
{
return 0;
// TODO: Implement rewind() method.
}

public function isWritable()
public function isWritable(): bool
{
return true;
}

public function write($string)
public function write($string): int
{
// TODO: Implement write() method.
return 0;
}

public function isReadable()
public function isReadable(): bool
{
return true;
}

public function read($length)
public function read($length): string
{
return "";
}

public function getContents()
public function getContents(): string
{
return "";
}
Expand All @@ -92,4 +93,4 @@ public function getMetadata($key = null)
{
// TODO: Implement getMetadata() method.
}
}
}