Do not added instances of a anonymous class to the phpstorm_meta file (#806)

This commit is contained in:
Mandy Schoep
2019-09-08 11:46:25 +02:00
committed by Barry vd. Heuvel
parent 499a2113b3
commit 5e411ef104
+3 -2
View File
@@ -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) {