Skip to content
Merged
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
3 changes: 3 additions & 0 deletions psalm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,7 @@
<directory name="vendor" />
</ignoreFiles>
</projectFiles>
<issueHandlers>
<UndefinedAttributeClass errorLevel="suppress" />
</issueHandlers>
</psalm>
2 changes: 2 additions & 0 deletions src/Gzip.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ private function __construct()
/**
* @psalm-pure
*/
#[\NoDiscard]
public static function compress(): Gzip\Compress
{
return Gzip\Compress::max();
Expand All @@ -20,6 +21,7 @@ public static function compress(): Gzip\Compress
/**
* @psalm-pure
*/
#[\NoDiscard]
public static function decompress(): Gzip\Decompress
{
return Gzip\Decompress::max();
Expand Down
2 changes: 2 additions & 0 deletions src/Gzip/Compress.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ private function __construct()
{
}

#[\NoDiscard]
public function __invoke(Content $content): Content
{
return Content::ofChunks($this->compressChunks($content->chunks()));
Expand All @@ -30,6 +31,7 @@ public function __invoke(Content $content): Content
/**
* @psalm-pure
*/
#[\NoDiscard]
public static function max(): self
{
return new self;
Expand Down
2 changes: 2 additions & 0 deletions src/Gzip/Decompress.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ private function __construct()
{
}

#[\NoDiscard]
public function __invoke(Content $content): Content
{
return Content::ofChunks($this->decompressChunks($content->chunks()));
Expand All @@ -30,6 +31,7 @@ public function __invoke(Content $content): Content
/**
* @psalm-pure
*/
#[\NoDiscard]
public static function max(): self
{
return new self;
Expand Down
1 change: 1 addition & 0 deletions src/Tar.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ private function __construct()
/**
* @psalm-pure
*/
#[\NoDiscard]
public static function encode(Clock $clock): Tar\Encode
{
return Tar\Encode::of($clock);
Expand Down
2 changes: 2 additions & 0 deletions src/Tar/Encode.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ private function __construct(Clock $clock)
$this->clock = $clock;
}

#[\NoDiscard]
public function __invoke(File|Directory $file): Content
{
return Content::ofChunks(
Expand All @@ -50,6 +51,7 @@ public function __invoke(File|Directory $file): Content
/**
* @psalm-pure
*/
#[\NoDiscard]
public static function of(Clock $clock): self
{
return new self($clock);
Expand Down