Skip to content

Commit f247649

Browse files
committed
minor #276 PHP8.5 Fix #1 (Jas-n)
This PR was merged into the main branch. Discussion ---------- PHP8.5 Fix #1 Fixes: Method SplObjectStorage::attach() is deprecated since 8.5, use method SplObjectStorage::offsetSet() instead Commits ------- 59636f7 Fixes: Method SplObjectStorage::attach() is deprecated since 8.5, use method SplObjectStorage::offsetSet() instead
2 parents a669437 + 59636f7 commit f247649

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)