Skip to content

Commit

Permalink
Merge pull request #340 from afragen/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
bordoni authored Dec 22, 2023
2 parents 0c9e2d1 + ee08761 commit 9247c6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inc/class-phpcs-runner.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ protected function get_args(): array {
*/
public function run() {
// Backup the original command line arguments.
$orig_cmd_args = $_SERVER['argv'];
$orig_cmd_args = $_SERVER['argv'] ?? [];

// Create the default arguments for PHPCS.
$defaults = [
Expand Down Expand Up @@ -225,4 +225,4 @@ protected function reset_php_codesniffer_config(): void {
$overridden_defaults->setAccessible( false );
}
}
}
}

0 comments on commit 9247c6d

Please sign in to comment.