mirror of
https://github.com/danog/psalm-plugin-laravel.git
synced 2024-11-26 20:34:48 +01:00
Merge pull request #224 from ekvedaras/master
Add support for anonymous migrations
This commit is contained in:
commit
902d217a1e
@ -23,6 +23,12 @@ class SchemaAggregator
|
||||
foreach ($stmts as $stmt) {
|
||||
if ($stmt instanceof PhpParser\Node\Stmt\Class_) {
|
||||
$this->addClassStatements($stmt->stmts);
|
||||
} elseif (
|
||||
$stmt instanceof PhpParser\Node\Stmt\Return_ &&
|
||||
$stmt->expr instanceof PhpParser\Node\Expr\New_ &&
|
||||
$stmt->expr->class instanceof PhpParser\Node\Stmt\Class_
|
||||
) {
|
||||
$this->addClassStatements($stmt->expr->class->stmts);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user