Skip to content

Commit 64cdaa2

Browse files
Merge branch '5.1' into 5.2
* 5.1: Update .php_cs.dist Apply "visibility_required" CS rule to constants
2 parents b3ea174 + 5eb4a62 commit 64cdaa2

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
@@ -24,7 +24,7 @@
2424
#[\Attribute(\Attribute::TARGET_CLASS | \Attribute::IS_REPEATABLE)]
2525
class UniqueEntity extends Constraint
2626
{
27-
const NOT_UNIQUE_ERROR = '23bd9dbf-6b9b-41cd-a99e-4844bcf3077f';
27+
public const NOT_UNIQUE_ERROR = '23bd9dbf-6b9b-41cd-a99e-4844bcf3077f';
2828

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

0 commit comments

Comments
 (0)