Skip to content

Commit

Permalink
minor #49896 Apply no_null_property_initialization PHP-CS-Fixer rule …
Browse files Browse the repository at this point in the history
…(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
  • Loading branch information
nicolas-grekas committed Apr 3, 2023
2 parents 0bfdb11 + 79dbc1e commit 1136e6b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Validator/Constraints/UniqueEntity.php
Expand Up @@ -32,11 +32,11 @@ class UniqueEntity extends Constraint

public $message = 'This value is already used.';
public $service = 'doctrine.orm.validator.unique';
public $em = null;
public $entityClass = null;
public $em;
public $entityClass;
public $repositoryMethod = 'findBy';
public $fields = [];
public $errorPath = null;
public $errorPath;
public $ignoreNull = true;

/**
Expand Down

0 comments on commit 1136e6b

Please sign in to comment.