Skip to content

Commit 5579251

Browse files
author
Jeremiah VALERIE
committed
Fix static analysis travis build
1 parent ff82f9b commit 5579251

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Command/GraphQLDumpSchemaCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,13 @@ protected function execute(InputInterface $input, OutputInterface $output): int
9595
private function createFile(InputInterface $input): string
9696
{
9797
$format = strtolower($input->getOption('format'));
98+
/** @var string|null $schemaName */
9899
$schemaName = $input->getOption('schema');
99100

100101
/** @var bool $includeDescription */
101102
$includeDescription = $input->getOption('with-descriptions');
102103

104+
/** @var string $file */
103105
$file = $input->getOption('file') ?: $this->baseExportPath.sprintf('/schema%s.%s', $schemaName ? '.'.$schemaName : '', $format);
104106

105107
switch ($format) {

0 commit comments

Comments
 (0)