Skip to content

Commit 7c17bf5

Browse files
committed
format method
1 parent 6a35a74 commit 7c17bf5

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/Illuminate/Container/Container.php

+4-7
Original file line numberDiff line numberDiff line change
@@ -1065,17 +1065,14 @@ protected function getExtenders($abstract)
10651065
}
10661066

10671067
/**
1068-
* Remove all the extend closure of abstract.
1068+
* Remove all of the extender callbacks for a given type.
10691069
*
1070-
* @param string $abstract
1070+
* @param string $abstract
1071+
* @return void
10711072
*/
10721073
public function forgetExtenders($abstract)
10731074
{
1074-
$abstract = $this->getAlias($abstract);
1075-
1076-
if (isset($this->extenders[$abstract])) {
1077-
unset($this->extenders[$abstract]);
1078-
}
1075+
unset($this->extenders[$this->getAlias($abstract)]);
10791076
}
10801077

10811078
/**

0 commit comments

Comments
 (0)