Skip to content

Commit a5bf223

Browse files
committed
Fix for ContainerTransientBuilderTrait::addTransient()
1 parent f534e76 commit a5bf223

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Suhock/DependencyInjection/ContainerTransientBuilderTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ abstract protected function getInjector(): InjectorInterface;
3737
*/
3838
public function addTransient(string $className, string|Closure|null $source = null): static
3939
{
40-
$this->addSingletonInstanceProvider(
40+
$this->addTransientInstanceProvider(
4141
$className,
4242
InstanceProviderFactory::createInstanceProvider($this->getInjector(), $this, $className, $source)
4343
);

0 commit comments

Comments
 (0)