Skip to content

Commit

Permalink
Generator::run(): Composer.json: Use $path variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
janbarasek authored Mar 1, 2021
1 parent ac15d6b commit 429a9a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function run(): PackageDescriptorEntityInterface
}

$composerJson = Helpers::haystackToArray(
json_decode((string) file_get_contents($this->projectRoot . '/composer.json')),
json_decode((string) file_get_contents($path)),
);

if ($composerJson === [] || $composerJson === '') {
Expand Down

0 comments on commit 429a9a5

Please # to comment.