Skip to content

Commit

Permalink
Revert "feat: narrow ResultInterface to concrete implementation after…
Browse files Browse the repository at this point in the history
… calling `isSucceeded()` and `isFailed()` (#466)" (#469)

This reverts commit d211454.
  • Loading branch information
simPod authored Apr 19, 2024
1 parent d211454 commit 79eb271
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 46 deletions.
4 changes: 0 additions & 4 deletions src/Psl/Result/ResultInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,6 @@ public function getThrowable(): Throwable;
* @return bool - `true` if the operation succeeded; `false` otherwise
*
* @psalm-mutation-free
*
* @psalm-assert-if-true Success<T> $this
*/
public function isSucceeded(): bool;

Expand All @@ -128,8 +126,6 @@ public function isSucceeded(): bool;
* @return bool - `true` if the operation failed; `false` otherwise
*
* @psalm-mutation-free
*
* @psalm-assert-if-true Failure<T> $this
*/
public function isFailed(): bool;

Expand Down
42 changes: 0 additions & 42 deletions tests/static-analysis/Result/result_interface.php

This file was deleted.

0 comments on commit 79eb271

Please sign in to comment.