Skip to content

Commit

Permalink
fix: explicit compare
Browse files Browse the repository at this point in the history
  • Loading branch information
marcocesarato committed May 15, 2021
1 parent 9bb1e99 commit 78a084d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/DefaultCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
* Initialize.
*/
$this->output = new SymfonyStyle($input, $output);
if ($this->getApplication()) {
if ($this->getApplication() !== null) {
$appName = $this->getApplication()->getName();
$appVersion = $this->getApplication()->getVersion();
$this->output->title($appName . ' ' . $appVersion);
Expand Down
2 changes: 1 addition & 1 deletion src/Git/Repository.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public static function getRemoteUrl(): string
/**
* Has remote url.
*/
public static function hasRemoteUrl(): string
public static function hasRemoteUrl(): bool
{
$url = self::getRemoteUrl();

Expand Down

0 comments on commit 78a084d

Please sign in to comment.