Skip to content

Commit efab8e1

Browse files
committed
Check for value in value container in apply auth middleware
1 parent 4d4990c commit efab8e1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Middleware/ApplyAuthenticationMiddleware.php

+5-1
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ protected function getTransportFrom(ServerRequestInterface $request)
9898
$this->value_container->setRequest($request);
9999
}
100100

101-
return $this->value_container->getValue();
101+
if ($this->value_container->hasValue()) {
102+
return $this->value_container->getValue();
103+
}
104+
105+
return null;
102106
}
103107
}

0 commit comments

Comments
 (0)