Skip to content

Commit a04209b

Browse files
Merge branch '5.1' into 5.2
* 5.1: Update .php_cs.dist Apply "visibility_required" CS rule to constants
2 parents 52f486a + 38c6ca5 commit a04209b

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

DataCollectorTranslator.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
*/
2222
class DataCollectorTranslator implements TranslatorInterface, TranslatorBagInterface, LocaleAwareInterface, WarmableInterface
2323
{
24-
const MESSAGE_DEFINED = 0;
25-
const MESSAGE_MISSING = 1;
26-
const MESSAGE_EQUALS_FALLBACK = 2;
24+
public const MESSAGE_DEFINED = 0;
25+
public const MESSAGE_MISSING = 1;
26+
public const MESSAGE_EQUALS_FALLBACK = 2;
2727

2828
/**
2929
* @var TranslatorInterface|TranslatorBagInterface

Extractor/PhpExtractor.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
*/
2222
class PhpExtractor extends AbstractFileExtractor implements ExtractorInterface
2323
{
24-
const MESSAGE_TOKEN = 300;
25-
const METHOD_ARGUMENTS_TOKEN = 1000;
26-
const DOMAIN_TOKEN = 1001;
24+
public const MESSAGE_TOKEN = 300;
25+
public const METHOD_ARGUMENTS_TOKEN = 1000;
26+
public const DOMAIN_TOKEN = 1001;
2727

2828
/**
2929
* Prefix for new found message.

Loader/MoFileLoader.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,18 @@ class MoFileLoader extends FileLoader
2222
* Magic used for validating the format of a MO file as well as
2323
* detecting if the machine used to create that file was little endian.
2424
*/
25-
const MO_LITTLE_ENDIAN_MAGIC = 0x950412de;
25+
public const MO_LITTLE_ENDIAN_MAGIC = 0x950412de;
2626

2727
/**
2828
* Magic used for validating the format of a MO file as well as
2929
* detecting if the machine used to create that file was big endian.
3030
*/
31-
const MO_BIG_ENDIAN_MAGIC = 0xde120495;
31+
public const MO_BIG_ENDIAN_MAGIC = 0xde120495;
3232

3333
/**
3434
* The size of the header of a MO file in bytes.
3535
*/
36-
const MO_HEADER_SIZE = 28;
36+
public const MO_HEADER_SIZE = 28;
3737

3838
/**
3939
* Parses machine object (MO) format, independent of the machine's endian it

MessageCatalogueInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*/
2121
interface MessageCatalogueInterface
2222
{
23-
const INTL_DOMAIN_SUFFIX = '+intl-icu';
23+
public const INTL_DOMAIN_SUFFIX = '+intl-icu';
2424

2525
/**
2626
* Gets the catalogue locale.

0 commit comments

Comments
 (0)