Skip to content

Commit

Permalink
Merge pull request #43595 from nextcloud/bugfix/noid/make-psalm-green…
Browse files Browse the repository at this point in the history
…-again

fix(OCP): Add since tag to all constants
  • Loading branch information
nickvergessen authored Feb 15, 2024
2 parents c83a657 + 3b0a9e6 commit 299e5fd
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions lib/public/Collaboration/Reference/LinkReferenceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 299e5fd

Please sign in to comment.