Skip to content

Commit

Permalink
issue WsdlToPhp#246 - ensure return value is a string
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaelcom committed Apr 5, 2021
1 parent 454e6ee commit 7eb6da4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/File/Composer.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ protected static function encodeToJson(array $content): string

protected function getComposerFilePath(): string
{
return realpath(sprintf('%s/composer.json', $this->getGenerator()->getOptionDestination()));
$path = realpath(sprintf('%s/composer.json', $this->getGenerator()->getOptionDestination()));
return false === $path ? '' : $path;
}
}

0 comments on commit 7eb6da4

Please sign in to comment.