diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2024-11-12 22:15:08 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2024-11-12 22:15:08 +0100 |
commit | fdd24090ff0bdfa847549ca0b26f9259474a3d04 (patch) | |
tree | c8b60506297df908b5609e03c8a8ac151b25657d /lib/private | |
parent | de1c175d39f2513f3a99e393c9ea70175e43ae10 (diff) | |
download | nextcloud-server-fdd24090ff0bdfa847549ca0b26f9259474a3d04.tar.gz nextcloud-server-fdd24090ff0bdfa847549ca0b26f9259474a3d04.zip |
fix(Middleware): log deprecation when annotation was actually usedfix/noid/deprecation-correct-case
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/AppFramework/Middleware/Security/CORSMiddleware.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/AppFramework/Middleware/Security/CORSMiddleware.php b/lib/private/AppFramework/Middleware/Security/CORSMiddleware.php index d8f00f31096..40af67739d6 100644 --- a/lib/private/AppFramework/Middleware/Security/CORSMiddleware.php +++ b/lib/private/AppFramework/Middleware/Security/CORSMiddleware.php @@ -102,12 +102,12 @@ class CORSMiddleware extends Middleware { */ protected function hasAnnotationOrAttribute(ReflectionMethod $reflectionMethod, string $annotationName, string $attributeClass): bool { if ($this->reflector->hasAnnotation($annotationName)) { + $this->logger->debug($reflectionMethod->getDeclaringClass()->getName() . '::' . $reflectionMethod->getName() . ' uses the @' . $annotationName . ' annotation and should use the #[' . $attributeClass . '] attribute instead'); return true; } if (!empty($reflectionMethod->getAttributes($attributeClass))) { - $this->logger->debug($reflectionMethod->getDeclaringClass()->getName() . '::' . $reflectionMethod->getName() . ' uses the @' . $annotationName . ' annotation and should use the #[' . $attributeClass . '] attribute instead'); return true; } |