Skip to content

Commit

Permalink
Fix for PHPStan
Browse files Browse the repository at this point in the history
  • Loading branch information
j0k3r committed Mar 5, 2021
1 parent b4ac5e7 commit d78a23c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Command/SyncStarredReposCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ private function retrieveUsers(InputInterface $input): array
}

if ($input->getOption('username')) {
// @phpstan-ignore-next-line
$user = $this->userRepository->findOneByUsername((string) $input->getOption('username'));

if ($user) {
Expand Down
1 change: 1 addition & 0 deletions src/Command/SyncVersionsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ private function retrieveRepos(InputInterface $input): array
}

if ($input->getOption('repo_name')) {
// @phpstan-ignore-next-line
$repo = $this->repoRepository->findOneByFullName((string) $input->getOption('repo_name'));

if ($repo) {
Expand Down

0 comments on commit d78a23c

Please sign in to comment.