Skip to content

Commit

Permalink
Fix a deprecation warning in bootstrap.php
Browse files Browse the repository at this point in the history
(Deprecate passing null to non-nullable arguments of internal functions)
  • Loading branch information
twose committed Jan 14, 2022
1 parent bfe9b6b commit d20e816
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ function make()
if ($this->checkFileChange) {
preg_match(
'/^(\d+)/',
trim(shell_exec('cd ' . $this->libraryDir . ' && git diff --shortstat')),
trim(shell_exec('cd ' . $this->libraryDir . ' && git diff --shortstat') ?? ''),
$file_change
);
$file_change = (int)($file_change[1] ?? 0);
Expand Down

0 comments on commit d20e816

Please sign in to comment.