Skip to content

The name of the file path information item in scopes mode is file, … #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 2 additions & 1 deletion src/Command/ScopesCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down