From 4c9766ecacbf769bfe1f6ba436ebfd446ae6b0e4 Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Thu, 26 Jan 2023 10:47:11 +0100 Subject: [PATCH] fixup! feat(app-framework): Add UseSession attribute to replace annotation Signed-off-by: Christoph Wurst --- lib/public/AppFramework/Http/Attribute/UseSession.php | 1 - tests/lib/AppFramework/Middleware/SessionMiddlewareTest.php | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/public/AppFramework/Http/Attribute/UseSession.php b/lib/public/AppFramework/Http/Attribute/UseSession.php index bdc05931ec6f4..446686b93683f 100644 --- a/lib/public/AppFramework/Http/Attribute/UseSession.php +++ b/lib/public/AppFramework/Http/Attribute/UseSession.php @@ -29,5 +29,4 @@ #[Attribute] class UseSession { - } diff --git a/tests/lib/AppFramework/Middleware/SessionMiddlewareTest.php b/tests/lib/AppFramework/Middleware/SessionMiddlewareTest.php index 732257e7f043a..09838423e856b 100644 --- a/tests/lib/AppFramework/Middleware/SessionMiddlewareTest.php +++ b/tests/lib/AppFramework/Middleware/SessionMiddlewareTest.php @@ -44,7 +44,8 @@ public function withAnnotation() { #[UseSession] public function withAttribute() { } - public function without() {} + public function without() { + } }; $this->middleware = new SessionMiddleware( $this->reflector,