Skip to content

Commit

Permalink
fix composer
Browse files Browse the repository at this point in the history
  • Loading branch information
knqyf263 committed Mar 29, 2023
1 parent bd4a86b commit ebfe059
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pkg/fanal/analyzer/language/php/composer/composer.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,7 @@ func (a composerAnalyzer) Version() int {
}

func (a composerAnalyzer) parseComposerLock(path string, r dio.ReadSeekerAt) (*types.Application, error) {
libs, deps, err := a.lockParser.Parse(r)
if err != nil {
return nil, xerrors.Errorf("unable to parse composer.lock: %w", err)
}
return language.ToApplication(types.Composer, path, "", libs, deps), nil
return language.Parse(types.Composer, path, r, a.lockParser)
}

func (a composerAnalyzer) mergeComposerJson(fsys fs.FS, dir string, app *types.Application) error {
Expand Down

0 comments on commit ebfe059

Please sign in to comment.