Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 50f1f80

Browse files
authored
Fix class name for Symfony 6.r 2 (#321)
This class has been moved in symfony/symfony#47760
1 parent eb02b35 commit 50f1f80

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

config/sets/symfony/symfony62.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
// @see https://github.com/symfony/symfony/pull/47363
3131
'Symfony\Component\HttpKernel\Controller\ArgumentValueResolverInterface' => 'Symfony\Component\HttpKernel\Controller\ValueResolverInterface',
3232
// @see https://github.com/symfony/symfony/pull/46094
33-
'Symfony\Component\Security\Core\Security' => 'Symfony\Bundle\SecurityBundle\Security\Security',
33+
'Symfony\Component\Security\Core\Security' => 'Symfony\Bundle\SecurityBundle\Security',
3434
// @see https://github.com/symfony/symfony/pull/46161
3535
'Symfony\Component\Translation\Extractor\PhpAstExtractor' => 'Symfony\Component\Translation\Extractor\PhpAstExtractor',
3636
// @see https://github.com/symfony/symfony/pull/47595

src/Rector/Class_/MakeCommandLazyRector.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,7 @@ private function removeConstructorIfHasOnlySetNameMethodCall(Class_ $class): voi
203203
$onlyNode = $onlyNode->expr;
204204
}
205205

206-
/** @var Expr|null $onlyNode */
207-
if ($onlyNode === null) {
206+
if (! $onlyNode instanceof Expr) {
208207
return;
209208
}
210209

0 commit comments

Comments
 (0)