Skip to content

Commit

Permalink
Remove assert in the ServiceClientCore (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
msmakouz authored Dec 27, 2022
1 parent aed05ee commit 263dc77
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/GRPC/Interceptor/ServiceClientCore.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,18 @@

namespace Spiral\RoadRunnerBridge\GRPC\Interceptor;

use Google\Protobuf\Internal\Message;
use Spiral\Core\CoreInterface;
use Spiral\RoadRunner\GRPC\ContextInterface;

final class ServiceClientCore extends \Grpc\BaseStub implements CoreInterface
{
public function callAction(string $controller, string $action, array $parameters = []): mixed
{
\assert($parameters['responseClass'] instanceof Message);
\assert($parameters['ctx'] instanceof ContextInterface);

/** @var ContextInterface $ctx */
$ctx = $parameters['ctx'];

/** @psalm-suppress InvalidArgument */
return $this->_simpleRequest(
$action,
$parameters['in'],
Expand Down

0 comments on commit 263dc77

Please sign in to comment.