From d78a23cfd1e7fc3ecb97974707d5dd6ac3e88930 Mon Sep 17 00:00:00 2001 From: Jeremy Benoist Date: Fri, 5 Mar 2021 14:20:45 +0100 Subject: [PATCH] Fix for PHPStan --- src/Command/SyncStarredReposCommand.php | 1 + src/Command/SyncVersionsCommand.php | 1 + 2 files changed, 2 insertions(+) diff --git a/src/Command/SyncStarredReposCommand.php b/src/Command/SyncStarredReposCommand.php index 98e921a3..608043f6 100644 --- a/src/Command/SyncStarredReposCommand.php +++ b/src/Command/SyncStarredReposCommand.php @@ -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) { diff --git a/src/Command/SyncVersionsCommand.php b/src/Command/SyncVersionsCommand.php index 2ea2b5e9..db1f0a0d 100644 --- a/src/Command/SyncVersionsCommand.php +++ b/src/Command/SyncVersionsCommand.php @@ -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) {