Skip to content

Commit 4395f1c

Browse files
committed
missing patches from #7
1 parent f885a5b commit 4395f1c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Definition/Reference.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function getTargetEntryName() : string
5454
/**
5555
* Returns the name of the entity requesting this entry.
5656
*/
57-
public function getRequestingName() : string
57+
public function getRequestingName() : ?string
5858
{
5959
return $this->requestingName;
6060
}

src/Definition/Source/AttributeBasedAutowiring.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ private function readProperty(ReflectionProperty $property, ObjectDefinition $de
177177
}
178178

179179
$definition->addPropertyInjection(
180-
new PropertyInjection($property->getName(), new Reference($entryName), $classname)
180+
new PropertyInjection($property->getName(), new Reference($entryName, $classname), $classname)
181181
);
182182
}
183183

@@ -312,7 +312,7 @@ private function readConstructor(ReflectionClass $class, ObjectDefinition $defin
312312
$entryName = $this->getMethodParameter($index, $parameter, []);
313313

314314
if ($entryName !== null) {
315-
$parameters[$index] = new Reference($entryName);
315+
$parameters[$index] = new Reference($entryName, $class->getName());
316316
}
317317
}
318318

0 commit comments

Comments
 (0)