Skip to content

Commit 58c8efe

Browse files
committed
Avoid opcache bug
1 parent be1e245 commit 58c8efe

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/Driver/UvFilesystemDriver.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,8 @@ final class UvFilesystemDriver implements FilesystemDriver
1818
public static function isSupported(EventLoopDriver $driver): bool
1919
{
2020
$uvVersion = \phpversion('uv');
21-
if (!$uvVersion) {
22-
return false;
23-
}
2421

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

2825
private readonly \UVLoop $eventLoopHandle;

0 commit comments

Comments
 (0)