Skip to content

Commit e047c78

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 5bfe124 + d51e55d commit e047c78

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Mapping/Loader/YamlFileLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class YamlFileLoader extends FileLoader
2929
*
3030
* @var array
3131
*/
32-
protected $classes = null;
32+
protected $classes;
3333

3434
public function __construct(string $file)
3535
{

Tests/Mapping/Loader/StaticMethodLoaderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public static function loadMetadata(ClassMetadata $metadata)
119119

120120
class StaticLoaderEntity
121121
{
122-
public static $invokedWith = null;
122+
public static $invokedWith;
123123

124124
public static function loadMetadata(ClassMetadata $metadata)
125125
{

0 commit comments

Comments
 (0)