mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-23 19:24:48 +01:00
test fixes
This commit is contained in:
parent
fd33091905
commit
73eb11b093
@ -56,7 +56,8 @@ final class AssignAnalyzer
|
||||
private function isVariableTypeAndPropetyName(Node $node, string $expectedType, string $expectedPropertyName): bool
|
||||
{
|
||||
$variableTypes = $node->var->var->getAttribute(Attribute::TYPES);
|
||||
if (in_array($expectedType, $variableTypes, true)) {
|
||||
|
||||
if (! in_array($expectedType, $variableTypes, true)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -85,7 +85,7 @@ final class GetServiceToConstructorInjectionRector extends AbstractRector
|
||||
|
||||
$this->classPropertyCollector->addPropertyForClass(
|
||||
(string) $methodCallNode->getAttribute(Attribute::CLASS_NAME),
|
||||
$serviceType,
|
||||
[$serviceType],
|
||||
$propertyName
|
||||
);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user