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: 2 additions & 1 deletion src/Result/Testing/IsErr.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace Superscript\Monads\Result\Testing;

use PHPUnit\Framework\Constraint\Constraint;
use PHPUnit\Util\Exporter;
use Superscript\Monads\Result\Result;

final class IsErr extends Constraint
Expand All @@ -21,6 +22,6 @@ public function matches(mixed $other): bool

protected function failureDescription(mixed $other): string
{
return sprintf('%s %s', $this->exporter()->export($other), $this->toString());
return sprintf('%s %s', Exporter::export($other), $this->toString());
}
}
3 changes: 2 additions & 1 deletion src/Result/Testing/IsOk.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace Superscript\Monads\Result\Testing;

use PHPUnit\Framework\Constraint\Constraint;
use PHPUnit\Util\Exporter;
use Superscript\Monads\Result\Result;

final class IsOk extends Constraint
Expand All @@ -21,6 +22,6 @@ public function matches(mixed $other): bool

protected function failureDescription(mixed $other): string
{
return sprintf('%s %s', $this->exporter()->export($other), $this->toString());
return sprintf('%s %s', Exporter::export($other), $this->toString());
}
}
Loading