Skip to content

Commit 27332e3

Browse files
committed
Fixed type hints for the success and fail methods
1 parent f850525 commit 27332e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Result.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ protected function __construct() {
7676
*
7777
* @param OkType $value
7878
*
79-
* @return Result<OkType, void>
79+
* @return static<OkType, void>
8080
*/
8181
public static function success($value = null) {
8282
$result = new static();
@@ -92,7 +92,7 @@ public static function success($value = null) {
9292
*
9393
* @param ErrorType $value
9494
*
95-
* @return Result<void, ErrorType>
95+
* @return static<void, ErrorType>
9696
*/
9797
public static function fail($value = null) {
9898
$result = new static();

0 commit comments

Comments
 (0)