Skip to content

Commit 5eb4a62

Browse files
Merge branch '4.4' into 5.1
* 4.4: Update .php_cs.dist Apply "visibility_required" CS rule to constants
2 parents f8824e9 + f53aca8 commit 5eb4a62

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Logger/DbalLogger.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
*/
2121
class DbalLogger implements SQLLogger
2222
{
23-
const MAX_STRING_LENGTH = 32;
24-
const BINARY_DATA_VALUE = '(binary value)';
23+
public const MAX_STRING_LENGTH = 32;
24+
public const BINARY_DATA_VALUE = '(binary value)';
2525

2626
protected $logger;
2727
protected $stopwatch;

Tests/Form/Type/EntityTypeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
class EntityTypeTest extends BaseTypeTest
3939
{
40-
const TESTED_TYPE = 'Symfony\Bridge\Doctrine\Form\Type\EntityType';
40+
public const TESTED_TYPE = 'Symfony\Bridge\Doctrine\Form\Type\EntityType';
4141

4242
private const ITEM_GROUP_CLASS = 'Symfony\Bridge\Doctrine\Tests\Fixtures\GroupableEntity';
4343
private const SINGLE_IDENT_CLASS = 'Symfony\Bridge\Doctrine\Tests\Fixtures\SingleIntIdEntity';

Validator/Constraints/UniqueEntity.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*/
2424
class UniqueEntity extends Constraint
2525
{
26-
const NOT_UNIQUE_ERROR = '23bd9dbf-6b9b-41cd-a99e-4844bcf3077f';
26+
public const NOT_UNIQUE_ERROR = '23bd9dbf-6b9b-41cd-a99e-4844bcf3077f';
2727

2828
public $message = 'This value is already used.';
2929
public $service = 'doctrine.orm.validator.unique';

0 commit comments

Comments
 (0)