Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/Container/Capsule.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,10 @@ public function make(string $key): mixed
* Add to register
*
* @param string $key
* @param callable $value
* @param string|Closure|callable $value
* @return Capsule
*/
public function bind(string $key, callable $value): Capsule
public function bind(string $key, string|Closure|callable $value): Capsule
{
$this->key[$key] = true;

Expand All @@ -193,10 +193,10 @@ public function bind(string $key, callable $value): Capsule
* Register the instance of a class
*
* @param string $key
* @param Closure|callable $value
* @param string|Closure|callable $value
* @return Capsule
*/
public function factory(string $key, Closure|callable $value): Capsule
public function factory(string $key, string|Closure|callable $value): Capsule
{
$this->factories[$key] = $value;

Expand Down
Loading