Skip to content

Commit 194547c

Browse files
committed
Fix pass-by-reference
1 parent 21cea9e commit 194547c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Controller/NegotiateController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ public function retry(Request $request): RunnableResponse
235235
$this->session->setData('negotiate:disable', 'session', false, 86400); //24*60*60=86400
236236
$this->logger::debug('Negotiate(retry) - session enabled, retrying.');
237237

238-
return new RunnableResponse([$source, 'authenticate'], [$state]);
238+
return new RunnableResponse([$source, 'authenticate'], [&$state]);
239239
}
240240
throw new Exception('Negotiate - retry - no "auth" parameter found in IdP metadata.');
241241
}
@@ -262,6 +262,6 @@ public function fallback(Request $request): RunnableResponse
262262

263263
$this->logger::debug('backend - fallback: ' . $state['LogoutState']['negotiate:backend']);
264264

265-
return new RunnableResponse([Negotiate::class, 'fallBack'], [$state]);
265+
return new RunnableResponse([Negotiate::class, 'fallBack'], [&$state]);
266266
}
267267
}

0 commit comments

Comments
 (0)