Skip to content

Commit a7cfa77

Browse files
authored
Merge pull request #4 from mobizel/fix/null-adjustment
Fix null adjustment
2 parents 4d11df6 + c73f422 commit a7cfa77

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

ecs.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
declare(strict_types=1);
44

5-
use PhpCsFixer\Fixer\Casing\NativeFunctionCasingFixer;
65
use PhpCsFixer\Fixer\ClassNotation\VisibilityRequiredFixer;
76
use PhpCsFixer\Fixer\Import\NoUnusedImportsFixer;
87
use PhpCsFixer\Fixer\Import\OrderedImportsFixer;
@@ -14,7 +13,7 @@
1413
use Symplify\EasyCodingStandard\ValueObject\Set\SetList;
1514

1615
return static function (ContainerConfigurator $containerConfigurator): void {
17-
$containerConfigurator->import(SetList::PHP_CS_FIXER);
16+
$containerConfigurator->import(SetList::SYMFONY);
1817

1918
$services = $containerConfigurator->services();
2019
$services->set(DeclareStrictTypesFixer::class);

tests/Sample.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,10 @@ public static function choices(): array
1818
'foo' => 'bar',
1919
];
2020
}
21+
22+
public function run(): void
23+
{
24+
/** @var string|null $description */
25+
$description = true ? 'This is a description' : null;
26+
}
2127
}

0 commit comments

Comments
 (0)