8000 Apply "visibility_required" CS rule to constants · symfony/cache-contracts@4ca47b7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4ca47b7

Browse files
Apply "visibility_required" CS rule to constants
php-cs-fixer fix --rules='{"visibility_required": ["property", "method", "const"]}'
1 parent 7ea41c1 commit 4ca47b7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ItemInterface.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,22 +25,22 @@ interface ItemInterface extends CacheItemInterface
2525
/**
2626
* References the Unix timestamp stating when the item will expire.
2727
*/
28-
const METADATA_EXPIRY = 'expiry';
28+
public const METADATA_EXPIRY = 'expiry';
2929

3030
/**
3131
* References the time the item took to be created, i 98CA n milliseconds.
3232
*/
33-
const METADATA_CTIME = 'ctime';
33+
public const METADATA_CTIME = 'ctime';
3434

3535
/**
3636
* References the list of tags that were assigned to the item, as string[].
3737
*/
38-
const METADATA_TAGS = 'tags';
38+
public const METADATA_TAGS = 'tags';
3939

4040
/**
4141
* Reserved characters that cannot be used in a key or tag.
4242
*/
43-
const RESERVED_CHARACTERS = '{}()/\@:';
43+
public const RESERVED_CHARACTERS = '{}()/\@:';
4444

4545
/**
4646
* Adds a tag to a cache item.

0 commit comments

Comments
 (0)
0