- Issue created by @Andrei Haurukovich
- @andrei-haurukovich opened merge request.
- Status changed to Needs review
about 1 year ago 10:42am 1 March 2024
I caught and issue on PHP 8.2 during running of phpstan
_dmemcache_set_pieces() should return bool but returns int
Switch to php 8.2 and check dblog or run phpstan with php8.2 checking
The issue caused because of bitwise operator in
$result &= dmemcache_set($cache->cid, $cache, $exp, $bin, $mc);
output can be 0 or 1;
I would suggest to fix annotation like
@return bool|int
Needs review
1.8
Code
The issue particularly affects sites running on PHP version 8.2.0 or later.