diff --git a/tests/lib/AppFramework/Middleware/OCSMiddlewareTest.php b/tests/lib/AppFramework/Middleware/OCSMiddlewareTest.php
index 834cd39185c07a1e9e2ed9ae7d0b187d5f385d0b..40a1145b857030bcaad8e21ccf9853c86a06f084 100644
--- a/tests/lib/AppFramework/Middleware/OCSMiddlewareTest.php
+++ b/tests/lib/AppFramework/Middleware/OCSMiddlewareTest.php
@@ -232,7 +232,6 @@ class OCSMiddlewareTest extends \Test\TestCase {
 			$this->assertSame($response, $newResponse);
 		} else {
 			$this->assertInstanceOf(BaseResponse::class, $newResponse);
-			/** @var Http\OCSResponse $newResponse */
 			$this->assertSame($response->getData()['message'], $this->invokePrivate($newResponse, 'statusMessage'));
 			$this->assertSame(\OCP\API::RESPOND_UNAUTHORISED, $newResponse->getOCSStatus());
 			$this->assertSame(Http::STATUS_UNAUTHORIZED, $newResponse->getStatus());