mirror of
https://github.com/danog/psalm-plugin-laravel.git
synced 2024-11-26 20:34:48 +01:00
Add support for anonymous migrations
This commit is contained in:
parent
b156f55956
commit
3d9c5a7443
@ -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