We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a35a74 commit 7c17bf5Copy full SHA for 7c17bf5
src/Illuminate/Container/Container.php
@@ -1065,17 +1065,14 @@ protected function getExtenders($abstract)
1065
}
1066
1067
/**
1068
- * Remove all the extend closure of abstract.
+ * Remove all of the extender callbacks for a given type.
1069
*
1070
- * @param string $abstract
+ * @param string $abstract
1071
+ * @return void
1072
*/
1073
public function forgetExtenders($abstract)
1074
{
- $abstract = $this->getAlias($abstract);
1075
-
1076
- if (isset($this->extenders[$abstract])) {
1077
- unset($this->extenders[$abstract]);
1078
- }
+ unset($this->extenders[$this->getAlias($abstract)]);
1079
1080
1081
0 commit comments