diff --git a/src/Middleware/MiddlewareAware.php b/src/Middleware/MiddlewareAware.php index 412b6bb..1e39797 100644 --- a/src/Middleware/MiddlewareAware.php +++ b/src/Middleware/MiddlewareAware.php @@ -50,7 +50,6 @@ protected function callMiddleware($class, $excludeMiddleware, $last) // Build middleware from back to front $next = $last; - /** @var Middleware $middleware */ foreach (array_reverse($this->getMiddlewares() ?? []) as $middleware) { $next = function ($class, $excludeMiddleware) use ($middleware, $next) { return $middleware->getClassConfig($class, $excludeMiddleware, $next); diff --git a/src/Transformer/PrivateStaticTransformer.php b/src/Transformer/PrivateStaticTransformer.php index 1568b1e..cb85633 100644 --- a/src/Transformer/PrivateStaticTransformer.php +++ b/src/Transformer/PrivateStaticTransformer.php @@ -70,7 +70,6 @@ protected function getClassConfig($class) { $reflection = new ReflectionClass($class); - /** @var ReflectionProperty[] $props **/ $props = $reflection->getProperties(ReflectionProperty::IS_STATIC); $classConfig = [];