Skip to content

Commit 898ab51

Browse files
perf(laravel): making phpstan happy
1 parent cc206e8 commit 898ab51

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Laravel/Eloquent/Metadata/ModelMetadata.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,11 @@ public function getAttributes(Model $model): Collection
6666
$connection = $model->getConnection();
6767
$schema = $connection->getSchemaBuilder();
6868
$table = $model->getTable();
69+
/** @var array $columns */
6970
$columns = Cache::flexible('api-platform.tables.'.$table, [5, 10], function () use ($schema, $table) {
7071
return $schema->getColumns($table);
7172
});
73+
/** @var array $indexes */
7274
$indexes = Cache::flexible('api-platform.indexes.'.$table, [5, 10], function () use ($schema, $table) {
7375
return $schema->getIndexes($table);
7476
});

0 commit comments

Comments
 (0)