Skip to content

Commit

Permalink
\Symfony\Component\Console\Input\InputInterface::hasOption() cannot…
Browse files Browse the repository at this point in the history
… be trusted.
  • Loading branch information
wimleers committed Jun 20, 2023
1 parent e9ba9af commit a9c042e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Command/App/From/SourceSite/Drupal7SiteInspector.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public static function getSiteUri(InputInterface $input, string $drupal_root): s
}, glob("$drupal_root/sites/*/settings.php"));
// If the --drupal7-uri flag is defined, defer to it and attempt to ensure that it's
// valid.
if ($input->hasOption('drupal7-uri')) {
if ($input->getOption('drupal7-uri') !== NULL) {
$uri = $input->getOption('drupal7-uri');
$sites_location = "$drupal_root/sites/sites.php";
// If there isn't a sites.php file and the URI does not correspond to a
Expand Down

0 comments on commit a9c042e

Please sign in to comment.