From 45cd73ba185ebfdb0335e118f432601d3766f7a0 Mon Sep 17 00:00:00 2001 From: petr-buchyn <54354491+petr-buchyn@users.noreply.github.com> Date: Wed, 9 Dec 2020 23:12:07 +0200 Subject: [PATCH] Manifest method middlewares (#12) Fix in ManifestMiddlewareService --- src/Middleware/ManifestMiddlewareService.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Middleware/ManifestMiddlewareService.php b/src/Middleware/ManifestMiddlewareService.php index c6c3023..3328d0d 100644 --- a/src/Middleware/ManifestMiddlewareService.php +++ b/src/Middleware/ManifestMiddlewareService.php @@ -17,6 +17,7 @@ public function beforeMethodCall(ManifestInterface $manifest, string $methodName { foreach ($this->middlewares as $middleware) { if ($middleware->supports($manifest, $methodName, $params)) { + $returnValue = ManifestMethodMiddlewareInterface::NO_RETURN_VALUE; $middleware->beforeMethodCall($manifest, $methodName, $params, $returnValue); if (ManifestMethodMiddlewareInterface::NO_RETURN_VALUE !== $returnValue) { return $returnValue;