Skip to content

Commit c5829f9

Browse files
committed
fixed return mixed type wrong inference
1 parent 76a79c1 commit c5829f9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/Type/Symfony/data/messenger_handle_trait.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,25 +61,25 @@ public function __invoke()
6161
class QueryBus {
6262
use HandleTrait;
6363

64-
public function dispatch(object $query): mixed
64+
public function dispatch(object $query)
6565
{
6666
return $this->handle($query);
6767
}
6868

69-
public function dispatch2(object $query): mixed
69+
public function dispatch2(object $query)
7070
{
7171
return $this->handle($query);
7272
}
7373
}
7474

7575
interface QueryBusInterface {
76-
public function dispatch(object $query): mixed;
76+
public function dispatch(object $query);
7777
}
7878

7979
class QueryBusWithInterface implements QueryBusInterface {
8080
use HandleTrait;
8181

82-
public function dispatch(object $query): mixed
82+
public function dispatch(object $query)
8383
{
8484
return $this->handle($query);
8585
}

0 commit comments

Comments
 (0)