Skip to content

Commit 87250e6

Browse files
committed
[PropertyInfo] Clean unused code
1 parent ec2b34d commit 87250e6

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

src/Symfony/Component/PropertyInfo/Extractor/ReflectionExtractor.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -688,10 +688,6 @@ private function getPropertyName(string $methodName, array $reflectionProperties
688688
*/
689689
private function findAdderAndRemover(\ReflectionClass $reflClass, array $singulars): array
690690
{
691-
if (!\is_array($this->arrayMutatorPrefixes) && 2 !== \count($this->arrayMutatorPrefixes)) {
692-
return [null, null, []];
693-
}
694-
695691
[$addPrefix, $removePrefix] = $this->arrayMutatorPrefixes;
696692
$errors = [];
697693

src/Symfony/Component/PropertyInfo/PhpStan/NameScope.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,7 @@ public function resolveStringName(string $name): string
5151
return sprintf('%s\\%s', $this->uses[$firstNamePart], implode('\\', $nameParts));
5252
}
5353

54-
if (null !== $this->namespace) {
55-
return sprintf('%s\\%s', $this->namespace, $name);
56-
}
57-
58-
return $name;
54+
return sprintf('%s\\%s', $this->namespace, $name);
5955
}
6056

6157
public function resolveRootClass(): string

0 commit comments

Comments
 (0)