Skip to content

Commit

Permalink
Avoid opcache bug
Browse files Browse the repository at this point in the history
  • Loading branch information
trowski committed Aug 15, 2024
1 parent be1e245 commit 58c8efe
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Driver/UvFilesystemDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,8 @@ final class UvFilesystemDriver implements FilesystemDriver
public static function isSupported(EventLoopDriver $driver): bool
{
$uvVersion = \phpversion('uv');
if (!$uvVersion) {
return false;
}

return \version_compare($uvVersion, '0.3.0', '>=') && $driver->getHandle() instanceof \UVLoop;
return $uvVersion && \version_compare($uvVersion, '0.3.0', '>=') && $driver->getHandle() instanceof \UVLoop;
}

private readonly \UVLoop $eventLoopHandle;
Expand Down

0 comments on commit 58c8efe

Please sign in to comment.