Skip to content

Commit 59636f7

Browse files
committed
Fixes: Method SplObjectStorage::attach() is deprecated since 8.5, use method SplObjectStorage::offsetSet() instead
1 parent a669437 commit 59636f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Pimple/Container.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ public function factory($callable)
174174
throw new ExpectedInvokableException('Service definition is not a Closure or invokable object.');
175175
}
176176

177-
$this->factories->attach($callable);
177+
$this->factories->offsetSet($callable);
178178

179179
return $callable;
180180
}

0 commit comments

Comments
 (0)