Skip to content

Commit 1136e6b

Browse files
minor #49896 Apply no_null_property_initialization PHP-CS-Fixer rule (yguedidi)
This PR was merged into the 6.3 branch. Discussion ---------- Apply no_null_property_initialization PHP-CS-Fixer rule | Q | A | ------------- | --- | Branch? | 6.3 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | | License | MIT | Doc PR | After a discussion with `@stof`, this rule should be part of the ``@Symfony`` PHP-CS-Fixer ruleset. This PR apply the rule on the Symfony code base. see PHP-CS-Fixer/PHP-CS-Fixer#6876 for the PR on PHP-CS-Fixer Commits ------- 2320c2a906 Apply no_null_property_initialization PHP-CS-Fixer rule
2 parents 0bfdb11 + 79dbc1e commit 1136e6b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Validator/Constraints/UniqueEntity.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ class UniqueEntity extends Constraint
3232

3333
public $message = 'This value is already used.';
3434
public $service = 'doctrine.orm.validator.unique';
35-
public $em = null;
36-
public $entityClass = null;
35+
public $em;
36+
public $entityClass;
3737
public $repositoryMethod = 'findBy';
3838
public $fields = [];
39-
public $errorPath = null;
39+
public $errorPath;
4040
public $ignoreNull = true;
4141

4242
/**

0 commit comments

Comments
 (0)