mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-18 01:57:13 +00:00
Fix unsetMethod in ModelsCommand (#1453)
* Fix unsetMethod in ModelsCommand * composer fix-style --------- Co-authored-by: Barry vd. Heuvel <[email protected]> Co-authored-by: laravel-ide-helper <[email protected]>
This commit is contained in:
co-authored by
Barry vd. Heuvel
laravel-ide-helper
parent
2535f8e6ab
commit
409bbf665b
@@ -892,7 +892,12 @@ class ModelsCommand extends Command
|
||||
|
||||
public function unsetMethod($name)
|
||||
{
|
||||
unset($this->methods[strtolower($name)]);
|
||||
foreach ($this->methods as $k => $v) {
|
||||
if (strtolower($k) === strtolower($name)) {
|
||||
unset($this->methods[$k]);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function getMethodType(Model $model, string $classType)
|
||||
|
||||
Reference in New Issue
Block a user