Skip to content

Commit ebdfeed

Browse files
committed
The name of the file path information item in scopes mode is file, but I want to match it with filename, which is the name of the file path item in single mode.
1 parent d9249ff commit ebdfeed

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# CHANGELOG
22

3+
### Bug fix
4+
5+
* The name of the file path information item in scopes mode is `file`, but I want to match it with `filename`, which is the name of the file path item in single mode.
6+
7+
38
## v0.0.6 (2025-03-21)
49

510
### Features

src/Command/ScopesCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ private function printResults(array $results): void
125125
foreach ($results as $result) {
126126
foreach ($result->scopes as $scope) {
127127
$allScopes[] = [
128-
'file' => $result->filename,
128+
'file' => $result->filename, // 既存の 'file' プロパティを維持
129+
'filename' => $result->filename, // 新しく 'filename' プロパティを追加
129130
'namespace' => $scope->namespace,
130131
'name' => $scope->name,
131132
'variableHardUsage' => $scope->getVariableHardUsage()

0 commit comments

Comments
 (0)