@@ -73,13 +73,17 @@ public function getLastFederatedInvitationToken(): string {
7373
7474 /**
7575 * @param string $user
76- * @param string $email
77- * @param string $description
76+ * @param string|null $email
77+ * @param string|null $description
7878 *
7979 * @return ResponseInterface
8080 * @throws GuzzleException
8181 */
82- public function createInvitation (string $ user , $ email = null , $ description = null ): ResponseInterface {
82+ public function createInvitation (
83+ string $ user ,
84+ ?string $ email = null ,
85+ ?string $ description = null ,
86+ ): ResponseInterface {
8387 $ response = OcmHelper::createInvitation (
8488 $ this ->featureContext ->getBaseUrl (),
8589 $ user ,
@@ -99,13 +103,17 @@ public function createInvitation(string $user, $email = null, $description = nul
99103 * @When :user creates the federation share invitation with email :email and description :description
100104 *
101105 * @param string $user
102- * @param string $email
103- * @param string $description
106+ * @param string|null $email
107+ * @param string|null $description
104108 *
105109 * @return void
106110 * @throws GuzzleException
107111 */
108- public function userCreatesTheFederationShareInvitation (string $ user , $ email = null , $ description = null ): void {
112+ public function userCreatesTheFederationShareInvitation (
113+ string $ user ,
114+ ?string $ email = null ,
115+ ?string $ description = null ,
116+ ): void {
109117 $ this ->featureContext ->setResponse ($ this ->createInvitation ($ user , $ email , $ description ));
110118 }
111119
@@ -114,25 +122,29 @@ public function userCreatesTheFederationShareInvitation(string $user, $email = n
114122 * @Given :user has created the federation share invitation with email :email and description :description
115123 *
116124 * @param string $user
117- * @param string $email
118- * @param string $description
125+ * @param string|null $email
126+ * @param string|null $description
119127 *
120128 * @return void
121129 * @throws GuzzleException
122130 */
123- public function userHasCreatedTheFederationShareInvitation (string $ user , $ email = null , $ description = null ): void {
131+ public function userHasCreatedTheFederationShareInvitation (
132+ string $ user ,
133+ ?string $ email = null ,
134+ ?string $ description = null ,
135+ ): void {
124136 $ response = $ this ->createInvitation ($ user , $ email , $ description );
125137 $ this ->featureContext ->theHTTPStatusCodeShouldBe (200 , '' , $ response );
126138 }
127139
128140 /**
129141 * @param string $user
130- * @param string $token
142+ * @param string|null $token
131143 *
132144 * @return ResponseInterface
133145 * @throws GuzzleException
134146 */
135- public function acceptInvitation (string $ user , string $ token = null ): ResponseInterface {
147+ public function acceptInvitation (string $ user , ? string $ token = null ): ResponseInterface {
136148 $ providerDomain = $ this ->featureContext ->getLocalBaseUrlWithoutScheme ();
137149 if ($ this ->featureContext ->getCurrentServer () === "LOCAL " ) {
138150 $ providerDomain = $ this ->featureContext ->getRemoteBaseUrlWithoutScheme ();
@@ -350,7 +362,7 @@ public function userHasDeletedFederatedConnectionWithUser(string $user, string $
350362 * @return ResponseInterface
351363 * @throws GuzzleException
352364 */
353- public function deleteConnection (string $ user , string $ ocmUser , string $ idp = null ): ResponseInterface {
365+ public function deleteConnection (string $ user , string $ ocmUser , ? string $ idp = null ): ResponseInterface {
354366 $ ocmUser = $ this ->getAcceptedUserByName ($ user , $ ocmUser );
355367 $ ocmUser ['idp ' ] = $ idp ?? $ ocmUser ['idp ' ];
356368 return OcmHelper::deleteConnection (
0 commit comments