Permalink
Browse files

Fixes for php7

  • Loading branch information...
1 parent 33df476 commit 677e367bd82a7f7992667b05bfe42e39acde5559 @cdujeu cdujeu committed Sep 6, 2016
@@ -55,7 +55,7 @@ class RestAuthMiddleware
* @param callable|null $next
* @throws PydioException
*/
- public static function handleRequest(ServerRequestInterface &$requestInterface, ResponseInterface &$responseInterface, callable $next = null){
+ public static function handleRequest(ServerRequestInterface $requestInterface, ResponseInterface $responseInterface, callable $next = null){
$driverImpl = ConfService::getAuthDriverImpl();
PluginsService::getInstance(Context::emptyContext())->setPluginUniqueActiveForType("auth", $driverImpl->getName(), $driverImpl);
@@ -55,7 +55,7 @@ class RestWopiAuthMiddleware
* @param callable|null $next
* @throws PydioException
*/
- public static function handleRequest(ServerRequestInterface &$requestInterface, ResponseInterface &$responseInterface, callable $next = null){
+ public static function handleRequest(ServerRequestInterface $requestInterface, ResponseInterface $responseInterface, callable $next = null){
$driverImpl = ConfService::getAuthDriverImpl();
PluginsService::getInstance(Context::emptyContext())->setPluginUniqueActiveForType("auth", $driverImpl->getName(), $driverImpl);
@@ -58,7 +58,7 @@ public static function getSessionName(){
* @param callable|null $next
* @return mixed|ResponseInterface
*/
- public static function handleRequest(ServerRequestInterface &$request, ResponseInterface $response, callable $next = null){
+ public static function handleRequest(ServerRequestInterface $request, ResponseInterface $response, callable $next = null){
$getParams = $request->getQueryParams();
if (isSet($getParams[PYDIO_SESSION_QUERY_PARAM])) {

0 comments on commit 677e367

Please sign in to comment.