Skip to content

Commit

Permalink
fix PHPStan warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
deminy committed Jan 6, 2025
1 parent 72d2cec commit 5ee05ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/BackgroundProcessing.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ public static function run(bool $stopTiming = false)
}
self::setInvoked(true);

if (!is_callable('fastcgi_finish_request')) {
if (!is_callable('fastcgi_finish_request')) { // @phpstan-ignore function.alreadyNarrowedType
throw new InvalidEnvironmentException('background process invokable under PHP-FPM only');
}
session_write_close();
fastcgi_finish_request();
fastcgi_finish_request(); // @phpstan-ignore function.resultUnused

if ($stopTiming) {
// Stop timing the current transaction before starting processing tasks in background.
Expand Down

0 comments on commit 5ee05ef

Please sign in to comment.