Skip to content

Commit

Permalink
Fix PHP 8.4 deprecations (matomo-org#7782)
Browse files Browse the repository at this point in the history
  • Loading branch information
liviuconcioiu authored Aug 15, 2024
1 parent 41f9f8e commit 4e2e847
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions misc/fileTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

if ('cli' !== php_sapi_name()) {
echo 'web not supported';
exit;
exit(0);
}

if (count($argv) < 2) {
Expand Down Expand Up @@ -63,7 +63,7 @@ function printHelpAndExit(): void

echo "<report mode> `yml` report yml fixture string\n";
echo "<report mode> `useragent` report useragent string\n\n";
exit;
exit(0);
}

if (!is_file($file)) {
Expand Down
2 changes: 1 addition & 1 deletion misc/generateBrandIdFree.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

if ('cli' !== php_sapi_name()) {
echo 'web not supported';
exit;
exit(0);
}

$mapIds = [];
Expand Down
2 changes: 1 addition & 1 deletion misc/test.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

if ('cli' === php_sapi_name()) {
echo Spyc::YAMLDump($result, 2, 0);
exit;
exit(0);
}

echo '<form><input type="text" name="ua" /><input type="submit" /></form>';
Expand Down

0 comments on commit 4e2e847

Please sign in to comment.