Skip to content

Commit 0584deb

Browse files
sasezakiraphaelstolt
authored andcommitted
Uses standard (bool) cast
1 parent 7a8ef50 commit 0584deb

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Commands/ValidateCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
306306
$validateArchive = $input->getOption('validate-git-archive');
307307
$globPattern = $input->getOption('glob-pattern');
308308
$globPatternFile = (string) $input->getOption('glob-pattern-file');
309-
$omitHeader = (boolean) $input->getOption('omit-header');
309+
$omitHeader = (bool) $input->getOption('omit-header');
310310
$showDifference = $input->getOption('diff');
311311
$reportStaleExportIgnores = $input->getOption('report-stale-export-ignores');
312312

@@ -343,7 +343,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
343343
$this->analyser->enableStrictAlignmentComparison();
344344
}
345345

346-
$keepLicense = (boolean) $input->getOption('keep-license');
346+
$keepLicense = (bool) $input->getOption('keep-license');
347347

348348
if ($keepLicense) {
349349
$verboseOutput = '+ Keeping the license file.';
@@ -352,7 +352,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
352352
$this->analyser->keepLicense();
353353
}
354354

355-
$keepReadme = (boolean) $input->getOption('keep-readme');
355+
$keepReadme = (bool) $input->getOption('keep-readme');
356356

357357
if ($keepReadme) {
358358
$verboseOutput = '+ Keeping the README file.';

0 commit comments

Comments
 (0)