mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-18 18: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 {
|
||||
$concrete = $this->laravel->make($abstract);
|
||||
if (is_object($concrete)) {
|
||||
$concrete = $this->laravel->make($abstract);
|
||||
$reflectionClass = new \ReflectionClass($concrete);
|
||||
if (is_object($concrete) && !$reflectionClass->isAnonymous()) {
|
||||
$bindings[$abstract] = get_class($concrete);
|
||||
}
|
||||
} catch (\Throwable $e) {
|
||||
|
||||
Reference in New Issue
Block a user