Skip to content

Commit b08719d

Browse files
committed
update use resolving
1 parent ace34fb commit b08719d

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

rules/Naming/Naming/UseImportsResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function resolvePrefix(Use_|GroupUse $use): string
5757
: '';
5858
}
5959

60-
private function resolveNamespace(): Namespace_|FileNode|null
60+
private function resolveNamespace(): Namespace_|null
6161
{
6262
/** @var File|null $file */
6363
$file = $this->currentFileProvider->getFile();

rules/TypeDeclaration/Rector/StmtsAwareInterface/IncreaseDeclareStrictTypesRector.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,14 @@ public function getNodeTypes(): array
6767
public function refactor(Node $node): ?Node
6868
{
6969
throw new ShouldNotHappenException(sprintf(
70+
<<<<<<< HEAD
7071
<<<<<<< HEAD
7172
'"%s" is deprecated as changes strict types randomly on each run.. Use "%s" Rector on specific paths instead.',
7273
=======
7374
'This rule is deprecated as behaves very randomly and keeps adding strict types on new run Cannot be automated.
75+
=======
76+
'The "%s" rule is deprecated as behaves very randomly and keeps adding strict types on new run Cannot be automated.
77+
>>>>>>> a0bb7b3a1a (update use resolving)
7478
* Use %s on specific paths instead narrow control',
7579
>>>>>>> 595b685f3e (introduce FileNode to handle file-level changes; deprecate IncreaseDeclareStrictTypesRector)
7680
self::class,
@@ -84,9 +88,12 @@ public function refactor(Node $node): ?Node
8488
public function configure(array $configuration): void
8589
{
8690
<<<<<<< HEAD
91+
<<<<<<< HEAD
8792
=======
8893
Assert::keyExists($configuration, self::LIMIT);
8994
$this->limit = (int) $configuration[self::LIMIT];
9095
>>>>>>> 595b685f3e (introduce FileNode to handle file-level changes; deprecate IncreaseDeclareStrictTypesRector)
96+
=======
97+
>>>>>>> a0bb7b3a1a (update use resolving)
9198
}
9299
}

0 commit comments

Comments
 (0)