Skip to content

Commit e52ac1d

Browse files
authored
Merge pull request #44 from wiz-develop:endou-mame/issue43
fix: OptionおよびResultインターフェースからphpstanアサーションを削除
2 parents 9a767ab + 5a56135 commit e52ac1d

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

src/Option.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ public function isNone(): bool;
3737
* @see https://doc.rust-lang.org/std/option/enum.Option.html#method.is_some_and
3838
*
3939
* @param Closure(T): bool $predicate
40-
* @phpstan-assert-if-true Some<T> $this
41-
* @phpstan-assert-if-false None $this
4240
*/
4341
public function isSomeAnd(Closure $predicate): bool;
4442

src/Result.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,12 @@ public function isErr(): bool;
3737
/**
3838
* @see https://doc.rust-lang.org/std/result/enum.Result.html#method.is_ok_and
3939
* @param Closure(T): bool $predicate
40-
* @phpstan-assert-if-true Ok<T> $this
41-
* @phpstan-assert-if-false Err<E> $this
4240
*/
4341
public function isOkAnd(Closure $predicate): bool;
4442

4543
/**
4644
* @see https://doc.rust-lang.org/std/result/enum.Result.html#method.is_err_and
4745
* @param Closure(E): bool $predicate
48-
* @phpstan-assert-if-true Err<E> $this
49-
* @phpstan-assert-if-false Ok<T> $this
5046
*/
5147
public function isErrAnd(Closure $predicate): bool;
5248

0 commit comments

Comments
 (0)