mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-20 19:13:11 +00:00
Do not added instances of a anonymous class to the phpstorm_meta file (#806)
This commit is contained in:
committed by
Barry vd. Heuvel
parent
499a2113b3
commit
5e411ef104
@@ -87,8 +87,9 @@ class MetaCommand extends Command
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$concrete = $this->laravel->make($abstract);
|
$concrete = $this->laravel->make($abstract);
|
||||||
if (is_object($concrete)) {
|
$reflectionClass = new \ReflectionClass($concrete);
|
||||||
|
if (is_object($concrete) && !$reflectionClass->isAnonymous()) {
|
||||||
$bindings[$abstract] = get_class($concrete);
|
$bindings[$abstract] = get_class($concrete);
|
||||||
}
|
}
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user