@@ -34,8 +34,8 @@ public static function withoutAuthentication(
3434 string $ host ,
3535 string $ vhost ,
3636 string $ topic ,
37- ? string $ exchange = null ,
38- ? int $ port = null ,
37+ string $ exchange = null ,
38+ int $ port = null ,
3939 ): self {
4040 $ connection = new Client ([
4141 'host ' => $ host ,
@@ -56,8 +56,8 @@ public static function withAuthentication(
5656 string $ topic ,
5757 ?string $ user ,
5858 ?string $ password ,
59- ? string $ exchange = null ,
60- ? int $ port = null ,
59+ string $ exchange = null ,
60+ int $ port = null ,
6161 ): self {
6262 $ connection = new Client ([
6363 'host ' => $ host ,
@@ -71,7 +71,7 @@ public static function withAuthentication(
7171 return new self ($ connection , stepUuid: $ stepUuid , topic: $ topic , exchange: $ exchange );
7272 }
7373
74- public function reject (StepCodeInterface $ step , object | array $ rejection , ? \Throwable $ exception = null ): void
74+ public function reject (StepCodeInterface $ step , array | object $ rejection , \Throwable $ exception = null ): void
7575 {
7676 $ this ->channel ->publish (
7777 json_encode ([
@@ -87,7 +87,7 @@ public function reject(StepCodeInterface $step, object|array $rejection, ?\Throw
8787 );
8888 }
8989
90- public function rejectWithReason (StepCodeInterface $ step , object | array $ rejection , string $ reason , ? \Throwable $ exception = null ): void
90+ public function rejectWithReason (StepCodeInterface $ step , array | object $ rejection , string $ reason , \Throwable $ exception = null ): void
9191 {
9292 $ this ->channel ->publish (
9393 json_encode ([
0 commit comments