diff --git a/CHANGELOG.md b/CHANGELOG.md index 38834e6..639bf00 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # CHANGELOG +### Bug fix + + * 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. + + ## v0.0.6 (2025-03-21) ### Features diff --git a/src/Command/ScopesCommand.php b/src/Command/ScopesCommand.php index 8f2a58e..b2033d0 100644 --- a/src/Command/ScopesCommand.php +++ b/src/Command/ScopesCommand.php @@ -125,7 +125,8 @@ private function printResults(array $results): void foreach ($results as $result) { foreach ($result->scopes as $scope) { $allScopes[] = [ - 'file' => $result->filename, + 'file' => $result->filename, // 既存の 'file' プロパティを維持 + 'filename' => $result->filename, // 新しく 'filename' プロパティを追加 'namespace' => $scope->namespace, 'name' => $scope->name, 'variableHardUsage' => $scope->getVariableHardUsage()