Skip to content

Commit

Permalink
Fix PHPStan error and configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelstolt committed Jul 19, 2024
1 parent 6c0c0f4 commit f9df225
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ parameters:
- src
- tests
reportUnmatchedIgnoredErrors: false
checkMissingIterableValueType: false
checkGenericClassInNonGenericObjectType: false
ignoreErrors:
- identifier: missingType.iterableValue
- identifier: missingType.generics
- '#Constant STORAGE_FILE not found.#'
- '#Constant WORKING_DIRECTORY not found.#'
- '#Mockery\\MockInterface#'
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/PairCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$output->writeln($outputContent);

if ($branch !== false) {
$this->repository->createBranch(trim($branch));
$this->repository->createBranch(trim((string) $branch));
$outputContent = "Switched to a new branch <comment>{$branch}</comment>.";
$output->writeln($outputContent);
}
Expand Down

0 comments on commit f9df225

Please sign in to comment.