Skip to content

Commit 618785a

Browse files
perf(laravel): changing the return type for phpstan
1 parent b6068fc commit 618785a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Laravel/Eloquent/Metadata/ModelMetadata.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ public function getAttributes(Model $model): Collection
6666
$connection = $model->getConnection();
6767
$schema = $connection->getSchemaBuilder();
6868
$table = $model->getTable();
69-
/** @var array<int, mixed> $columns */
69+
/** @var array<string, mixed> $columns */
7070
$columns = Cache::flexible('api-platform.tables.'.$table, [5, 10], function () use ($schema, $table) {
7171
return $schema->getColumns($table);
7272
});
73-
/** @var array<int, mixed> $indexes */
73+
/** @var array<string, mixed> $indexes */
7474
$indexes = Cache::flexible('api-platform.indexes.'.$table, [5, 10], function () use ($schema, $table) {
7575
return $schema->getIndexes($table);
7676
});

0 commit comments

Comments
 (0)