Skip to content

Commit

Permalink
Fix phpcs balking at emoji.
Browse files Browse the repository at this point in the history
  • Loading branch information
apotek committed Sep 16, 2023
1 parent 84932cc commit 806fea5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Robo/Plugin/Commands/DevelopmentModeBaseCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@ public function databaseRefreshTugboat(): ResultData
// @todo: Should we run a site-install by default?
continue;
}
// phpstan doesn't seem to be able to understand that $dbPath will
// be undefined if an exception is thrown in try{}, so it complains.
// I could not find any identifier that would silence this so I had
// to silence the whole line :(.
/* @phpstan-ignore-next-line */
if (!isset($dbPath) || !is_string($dbPath) || strlen($dbPath) == 0) {
$this->yell("'$siteName' database path not found.");
Expand Down

0 comments on commit 806fea5

Please sign in to comment.