From 3b0a9e66392bee1a124c93b8762e06bee8bb692f Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 15 Feb 2024 07:57:26 +0100 Subject: [PATCH] fix(OCP): Add since tag to all constants Signed-off-by: Joas Schilling --- .../Reference/LinkReferenceProvider.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/lib/public/Collaboration/Reference/LinkReferenceProvider.php b/lib/public/Collaboration/Reference/LinkReferenceProvider.php index 76f977f2eb0cb..d41c1160c7c07 100644 --- a/lib/public/Collaboration/Reference/LinkReferenceProvider.php +++ b/lib/public/Collaboration/Reference/LinkReferenceProvider.php @@ -45,10 +45,16 @@ */ class LinkReferenceProvider implements IReferenceProvider { - /* for image size and webpage header */ - private const MAX_CONTENT_LENGTH = 5 * 1024 * 1024; + /** + * for image size and webpage header + * @since 29.0.0 + */ + public const MAX_CONTENT_LENGTH = 5 * 1024 * 1024; - private const ALLOWED_CONTENT_TYPES = [ + /** + * @since 29.0.0 + */ + public const ALLOWED_CONTENT_TYPES = [ 'image/png', 'image/jpg', 'image/jpeg',