Skip to content

Commit cc9c801

Browse files
jschaedlXWB
authored andcommitted
Fixing PaginateElasticaQuerySubscriberTest::testShouldDoNothingIfSortParamIsEmpty
1 parent 9e5a498 commit cc9c801

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Subscriber/PaginateElasticaQuerySubscriber.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ private function getRequest()
149149
*/
150150
private function getFromRequest(?string $key)
151151
{
152-
if (null !== $request = $this->getRequest()) {
152+
if (null !== $key && null !== $request = $this->getRequest()) {
153153
return $request->get($key);
154154
}
155155

0 commit comments

Comments
 (0)