8000 Fix implicit float to int cast · symfony/symfony@93f27d9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 93f27d9

Browse files
committed
Fix implicit float to int cast
1 parent ced4415 commit 93f27d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Cache/Adapter/AbstractAdapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public static function createSystemCache($namespace, $defaultLifetime, $version,
121121
return $opcache;
122122
}
123123

124-
$apcu = new ApcuAdapter($namespace, (int) $defaultLifetime / 5, $version);
124+
$apcu = new ApcuAdapter($namespace, intdiv($defaultLifetime, 5), $version);
125125
if (null !== $logger) {
126126
$apcu->setLogger($logger);
127127
}

0 commit comments

Comments
 (0)
0